From 172f0ccbce171a0d64a55e0d563658c8670ab3a1 Mon Sep 17 00:00:00 2001 From: Ebube Date: Tue, 1 Aug 2023 11:46:33 +0100 Subject: [PATCH] cleanup 2 --- src/components/MyWallet/Popup/ConfirmAddFund.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/MyWallet/Popup/ConfirmAddFund.jsx b/src/components/MyWallet/Popup/ConfirmAddFund.jsx index d436ecb..edbb68f 100644 --- a/src/components/MyWallet/Popup/ConfirmAddFund.jsx +++ b/src/components/MyWallet/Popup/ConfirmAddFund.jsx @@ -133,6 +133,9 @@ function ConfirmAddFund({ text: "Proceed", callback: (response) => { debouncedSuccessPayment(); //delays the call for 5 secs + + if (response?.status === "successful") + return dispatch(tableReload({ type: "WALLETTABLE" })); setTimeout(() => { closePaymentModal(); setConfirmCredit((prev) => ({ @@ -143,7 +146,6 @@ function ConfirmAddFund({ }, data: response, })); - console.log("**** checking fw res **** ", response); }, 1500); }, }; @@ -156,7 +158,6 @@ function ConfirmAddFund({ .resultTopUp(reqData) .then((res) => { if (res.data.internal_return < 0) { - console.log("**** internal return **** THIS WAS REACHED"); setRequestStatus({ message: "Could not finish transaction", loading: false,