diff --git a/src/reducer/agentPerformanceSlice.ts b/src/reducer/agentPerformanceSlice.ts index c4954f0d..9ad7f698 100644 --- a/src/reducer/agentPerformanceSlice.ts +++ b/src/reducer/agentPerformanceSlice.ts @@ -40,9 +40,9 @@ const initialState: AgentPerformanceInterface = { lastUpdatedAt: 0, feedbackDetails: { totalFeedbackCount: 0, - singleDayFeedbackCount: 0, - singleDayGenuineFeedbackCount: 0, - singleDaySuspiciousFeedbackCount: 0, + todaysFeedbackCount: 0, + todaysGenuineFeedbackCount: 0, + todaysSuspiciousFeedbackCount: 0, totalSuspiciousFeedbackCount: 0, totalGenuineFeedbackCount: 0, }, diff --git a/src/screens/Dashboard/PerformanceOverview.tsx b/src/screens/Dashboard/PerformanceOverview.tsx index a43ce369..5f4ecd1e 100644 --- a/src/screens/Dashboard/PerformanceOverview.tsx +++ b/src/screens/Dashboard/PerformanceOverview.tsx @@ -60,7 +60,7 @@ const PerformanceOverview = (props: PerformanceOverviewProps) => { rightSideView={ - {performanceOverviewData?.suspiciousFeedback}% + {performanceOverviewData?.suspiciousFeedback?.toFixed(1)}% } diff --git a/src/screens/Dashboard/interface.ts b/src/screens/Dashboard/interface.ts index efa3fa9e..8fa40772 100644 --- a/src/screens/Dashboard/interface.ts +++ b/src/screens/Dashboard/interface.ts @@ -45,9 +45,9 @@ export interface CashCollectedProgressItem { export interface FeedbackDetals { totalFeedbackCount: number; - singleDayFeedbackCount: number; - singleDayGenuineFeedbackCount: number; - singleDaySuspiciousFeedbackCount: number; + todaysFeedbackCount: number; + todaysGenuineFeedbackCount: number; + todaysSuspiciousFeedbackCount: number; totalSuspiciousFeedbackCount: number; totalGenuineFeedbackCount: number; } diff --git a/src/screens/Dashboard/utils.ts b/src/screens/Dashboard/utils.ts index f83e4d3c..d315dc52 100644 --- a/src/screens/Dashboard/utils.ts +++ b/src/screens/Dashboard/utils.ts @@ -96,9 +96,9 @@ export const getExternalAgentPerformanceDetails = (cases: CasesType, feedbackDet } = cases || {}; const { - singleDayFeedbackCount = 0, - singleDayGenuineFeedbackCount = 0, - singleDaySuspiciousFeedbackCount = 0, + todaysFeedbackCount = 0, + todaysGenuineFeedbackCount = 0, + todaysSuspiciousFeedbackCount = 0, } = feedbackDetails || {}; return [ { @@ -131,11 +131,11 @@ export const getExternalAgentPerformanceDetails = (cases: CasesType, feedbackDet redirectionType: CurrentAllocationStats.BROKEN_PTP, }, { - totalConverted: singleDayFeedbackCount, + totalConverted: todaysFeedbackCount, convertedText: PerformanceCardDetails.feedbacks, - otherDetailsCount: singleDayGenuineFeedbackCount, + otherDetailsCount: todaysGenuineFeedbackCount, otherDetailsText: PerformanceCardDetails.genuine, - totalNotConverted: singleDaySuspiciousFeedbackCount, + totalNotConverted: todaysSuspiciousFeedbackCount, notConvertedText: PerformanceCardDetails.suspicious, }, ];