cleanup 2
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user