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,