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`}