From dd89616db74a122f31f8a2f54a8ab6a471ce503a Mon Sep 17 00:00:00 2001 From: yashmantri Date: Mon, 9 Oct 2023 23:47:46 +0530 Subject: [PATCH] TP-0 | Fix Unvisited Check --- src/screens/Dashboard/interface.ts | 8 ++++---- src/screens/Dashboard/utils.ts | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/screens/Dashboard/interface.ts b/src/screens/Dashboard/interface.ts index f9faaf83..14f6e0d1 100644 --- a/src/screens/Dashboard/interface.ts +++ b/src/screens/Dashboard/interface.ts @@ -63,7 +63,7 @@ export interface PerformanceProps { } export enum CurrentAllocationStats { - UNVSIITED = 'UNVSIITED', + UNVISITED = 'UNVISITED', NON_CONTACTABLE = 'NON_CONTACTABLE', NON_PTP = 'NON_PTP', BROKEN_PTP = 'BROKEN_PTP', @@ -83,21 +83,21 @@ export interface CashCollectedDataType { } export const CurrentAllocationStatsMap = { - [CurrentAllocationStats.UNVSIITED]: 'unvsited', + [CurrentAllocationStats.UNVISITED]: 'unvisited', [CurrentAllocationStats.NON_CONTACTABLE]: 'non contactable', [CurrentAllocationStats.NON_PTP]: 'non PTP', [CurrentAllocationStats.BROKEN_PTP]: 'broken PTP', }; export const CurrentAllocationStatsUIMap = { - unvsited: 'Unvisited', + unvisited: 'Unvisited', 'non contactable': 'Non contactable', 'non PTP': 'Non PTP', 'broken PTP': 'Broken PTP', }; export const CurrentAllocationStatsFilterMap = { - [CurrentAllocationStats.UNVSIITED]: CurrentAllocationStatsFilter.VISIT_STATUS, + [CurrentAllocationStats.UNVISITED]: CurrentAllocationStatsFilter.VISIT_STATUS, [CurrentAllocationStats.NON_CONTACTABLE]: CurrentAllocationStatsFilter.CONTACTABILITY, [CurrentAllocationStats.NON_PTP]: CurrentAllocationStatsFilter.PTP_STATUS, [CurrentAllocationStats.BROKEN_PTP]: CurrentAllocationStatsFilter.PTP_BREAKAGE, diff --git a/src/screens/Dashboard/utils.ts b/src/screens/Dashboard/utils.ts index 71c03ca9..8d13fd62 100644 --- a/src/screens/Dashboard/utils.ts +++ b/src/screens/Dashboard/utils.ts @@ -24,7 +24,7 @@ export const getPerformanceDetailFilter = (item: CurrentAllocationStats, applyFi if (!applyFilter) return []; switch (item) { - case CurrentAllocationStats.UNVSIITED: + case CurrentAllocationStats.UNVISITED: return { VISIT_STATUS: { false: true } }; case CurrentAllocationStats.NON_CONTACTABLE: @@ -58,7 +58,7 @@ export const getPerformanceDetails = (cases: CasesType) => { convertedText: PerformanceCardDetails.visitedCases, totalNotConverted: unvisitedCases, notConvertedText: PerformanceCardDetails.unVisitedCases, - redirectionType: CurrentAllocationStats.UNVSIITED, + redirectionType: CurrentAllocationStats.UNVISITED, }, { totalConverted: contactableCases, @@ -128,7 +128,7 @@ export const getCashCollectedData = ( export const getClickedEventName = (item: CurrentAllocationStats) => { switch (item) { - case CurrentAllocationStats.UNVSIITED: + case CurrentAllocationStats.UNVISITED: return CLICKSTREAM_EVENT_NAMES.FA_PERFORMANCE_DASHBOARD_UNVISITED_CASES_CLICKED; case CurrentAllocationStats.NON_CONTACTABLE: