diff --git a/src/components/MyWallet/Popup/CompleteConfirmCredit.jsx b/src/components/MyWallet/Popup/CompleteConfirmCredit.jsx index cf46a45..ba75cc8 100644 --- a/src/components/MyWallet/Popup/CompleteConfirmCredit.jsx +++ b/src/components/MyWallet/Popup/CompleteConfirmCredit.jsx @@ -80,14 +80,16 @@ function CompleteConfirmCredit({ onClose, confirmCredit }) { -
-

- Confirmation Number -

- - {data?.confirmation} - -
+ {isSuccess && ( +
+

+ Confirmation Number +

+ + {data?.confirmation} + +
+ )} )} diff --git a/src/components/MyWallet/Popup/CreditPopup.jsx b/src/components/MyWallet/Popup/CreditPopup.jsx index c02ab81..c7a336b 100644 --- a/src/components/MyWallet/Popup/CreditPopup.jsx +++ b/src/components/MyWallet/Popup/CreditPopup.jsx @@ -17,7 +17,7 @@ const CreditPopup = ({ details, onClose, situation, walletItem }) => { const getTitle = () => { if (confirmCredit?.show?.acceptConfirm?.state) { - if (confirmCredit?.data?.internal_return < 0) { + if (confirmCredit?.data?.internal_return <= 0) { return "Credit Unsuccessful"; } else { return "Credit Add Completed";