cleanup 2

This commit is contained in:
2023-08-01 11:46:33 +01:00
parent a2047cc2de
commit 172f0ccbce
@@ -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,