-
{/* HIDES THIS SECTION IF CURENCY IS NAIRA */}
{currency != "US Dollars" &&
//
diff --git a/src/components/MyWallet/ConfirmAddFund.jsx b/src/components/MyWallet/ConfirmAddFund.jsx
index f3a8771..7047b66 100644
--- a/src/components/MyWallet/ConfirmAddFund.jsx
+++ b/src/components/MyWallet/ConfirmAddFund.jsx
@@ -96,7 +96,10 @@ function ConfirmAddFund({ confirmCredit, onClose, walletItem }) {
// }
// }, []);
- let __confirmCard = JSON.parse(confirmCredit?.data.card) || "";
+ const __confirmCard = confirmCredit?.data.card
+ ? JSON.parse(confirmCredit?.data.card)
+ : "";
+
const ThePaymentText = ({ value }) => (
@@ -124,9 +127,7 @@ function ConfirmAddFund({ confirmCredit, onClose, walletItem }) {
- {confirmCredit?.data?.currency == "naira"
- ? "Amount (Naira):"
- : "Amount (Dollars):"}
+ Amount({confirmCredit?.data?.currency})
{`${walletItem?.symbol} ${
@@ -144,20 +145,16 @@ function ConfirmAddFund({ confirmCredit, onClose, walletItem }) {
{confirmCredit?.data?.currency && "Payment Method:"}
- {__confirmCard && (
+ {__confirmCard ? (
- )}
+ ) : null}
) : (
Cancel
- {confirmCredit?.data?.currency == "naira" ? (
+
+ {confirmCredit?.data?.currency == "Naira" && (
- ) : (
-
)}
diff --git a/src/components/MyWallet/Popup/CreditPopup.jsx b/src/components/MyWallet/Popup/CreditPopup.jsx
index a0f7214..375321e 100644
--- a/src/components/MyWallet/Popup/CreditPopup.jsx
+++ b/src/components/MyWallet/Popup/CreditPopup.jsx
@@ -47,8 +47,6 @@ const CreditPopup = ({ details, onClose, situation, walletItem }) => {
onClose();
};
- console.log("prop drills >> ", state);
-
return (