From beed565ba0ef3ee2fda85e5070fa59c1386b7202 Mon Sep 17 00:00:00 2001 From: Chief Bube Date: Mon, 30 Oct 2023 07:04:01 -0700 Subject: [PATCH] Updated Transaction popup layout --- .../MyWallet/Popup/CompleteConfirmCredit.jsx | 18 ++++++++++-------- src/components/MyWallet/Popup/CreditPopup.jsx | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-) 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";