TP-0 | Fix Unvisited Check

This commit is contained in:
yashmantri
2023-10-09 23:47:46 +05:30
parent bab74860ff
commit dd89616db7
2 changed files with 7 additions and 7 deletions

View File

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

View File

@@ -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: