From 39c468cb44ee608cf537b325180bb7b820f780a8 Mon Sep 17 00:00:00 2001 From: Aman Chaturvedi Date: Wed, 1 May 2024 13:13:15 +0530 Subject: [PATCH] TP-53770 | fee waiver fix (#956) * TP-53770 | Fee waiver v2 * TP-53770 | fee waiver api integrations * TP-53770 | lint * TP-53770 | fix * TP-53770 | fee waiver clickstream * TP-53770 | fixes * TP-53770 | fix * TP-53770 | remove routing key * TP-53770 | cosmetic fix --- .../EmiSchedule/WaiveFeeDrawerV2.tsx | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/pages/CaseDetails/components/EmiSchedule/WaiveFeeDrawerV2.tsx b/src/pages/CaseDetails/components/EmiSchedule/WaiveFeeDrawerV2.tsx index 160be414..ed74bb47 100644 --- a/src/pages/CaseDetails/components/EmiSchedule/WaiveFeeDrawerV2.tsx +++ b/src/pages/CaseDetails/components/EmiSchedule/WaiveFeeDrawerV2.tsx @@ -26,8 +26,15 @@ export interface IWaiveFeeDrawerV2 { } const WaiveFeeDrawerV2: React.FC = ({ emiItem, isOpen, closeDrawer }) => { - const { emiNumber, unpaidDueAmount, additionalWaiverInfo, referenceId, action, isMaxWaived } = - emiItem || {}; + const { + emiNumber, + unpaidDueAmount, + additionalWaiverInfo, + referenceId, + action, + isMaxWaived, + waivedAmount + } = emiItem || {}; const { loanId = '', customerId = '' } = useParams(); const { maxWaivableAmount } = additionalWaiverInfo || {}; @@ -144,7 +151,9 @@ const WaiveFeeDrawerV2: React.FC = ({ emiItem, isOpen, closeD 0 ? 'Waive' : EmiFeeActionLabelMap[action || EmiFeeActions.HOLD] + } penalty charges`} headerContainerClasses={styles.borderBottom} footer={ = ({ emiItem, isOpen, closeD ) : (
- {`${EmiFeeActionLabelMap[action || EmiFeeActions.HOLD]} details`} + {`${ + waivedAmount > 0 ? 'Waive' : EmiFeeActionLabelMap[action || EmiFeeActions.HOLD] + } details`}