TP-38288 | Minor Fixes

This commit is contained in:
yashmantri
2023-10-27 15:48:45 +05:30
parent 8d53ab7770
commit a1a00bccc6
4 changed files with 13 additions and 13 deletions

View File

@@ -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,
},

View File

@@ -60,7 +60,7 @@ const PerformanceOverview = (props: PerformanceOverviewProps) => {
rightSideView={
<View style={[GenericStyles.row, GenericStyles.alignCenter]}>
<Text style={[GenericStyles.fontSize16, styles.fw700, styles.leftContent]}>
{performanceOverviewData?.suspiciousFeedback}%
{performanceOverviewData?.suspiciousFeedback?.toFixed(1)}%
</Text>
</View>
}

View File

@@ -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;
}

View File

@@ -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,
},
];