From e98929627f828cc1a0009c904ea8c68c4ca8ad7d Mon Sep 17 00:00:00 2001 From: Ebube Date: Wed, 12 Jul 2023 15:20:39 +0100 Subject: [PATCH] Compi! --- src/components/MyWallet/ConfirmAddFund.jsx | 25 +++++++++++----------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/components/MyWallet/ConfirmAddFund.jsx b/src/components/MyWallet/ConfirmAddFund.jsx index b9d82cd..26b9a1a 100644 --- a/src/components/MyWallet/ConfirmAddFund.jsx +++ b/src/components/MyWallet/ConfirmAddFund.jsx @@ -92,14 +92,15 @@ function ConfirmAddFund({ confirmCredit, onClose, walletItem }) { // if (!data) { // navigate("/my-wallet/add-fund", { replace: true }); // } else { - // setPageLoading(false); - // } + // setPageLoading(false); + // } // }, []); - + + let __confirmCard = JSON.parse(confirmCredit?.data.card); const ThePaymentText = ({ value }) => (
-

+

{value.description} Card

@@ -109,9 +110,8 @@ function ConfirmAddFund({ confirmCredit, onClose, walletItem }) {

); - let __something = JSON.parse(confirmCredit?.data.card); - console.log("data on confirm", __something["card_uid"], __something.card_uid); + console.log("data on confirm", __confirmCard.card_uid); return (
@@ -126,14 +126,11 @@ function ConfirmAddFund({ confirmCredit, onClose, walletItem }) { {confirmCredit?.show ? (
- - {/* {confirmCredit?.data?.card && } */} + {__confirmCard && ( + + )}
@@ -173,7 +172,7 @@ function ConfirmAddFund({ confirmCredit, onClose, walletItem }) { {confirmCredit?.data?.currency && "Payment Method"} */} {/*
*/} -
+