cleanup 2
This commit is contained in:
@@ -133,6 +133,9 @@ function ConfirmAddFund({
|
|||||||
text: "Proceed",
|
text: "Proceed",
|
||||||
callback: (response) => {
|
callback: (response) => {
|
||||||
debouncedSuccessPayment(); //delays the call for 5 secs
|
debouncedSuccessPayment(); //delays the call for 5 secs
|
||||||
|
|
||||||
|
if (response?.status === "successful")
|
||||||
|
return dispatch(tableReload({ type: "WALLETTABLE" }));
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
closePaymentModal();
|
closePaymentModal();
|
||||||
setConfirmCredit((prev) => ({
|
setConfirmCredit((prev) => ({
|
||||||
@@ -143,7 +146,6 @@ function ConfirmAddFund({
|
|||||||
},
|
},
|
||||||
data: response,
|
data: response,
|
||||||
}));
|
}));
|
||||||
console.log("**** checking fw res **** ", response);
|
|
||||||
}, 1500);
|
}, 1500);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -156,7 +158,6 @@ function ConfirmAddFund({
|
|||||||
.resultTopUp(reqData)
|
.resultTopUp(reqData)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.data.internal_return < 0) {
|
if (res.data.internal_return < 0) {
|
||||||
console.log("**** internal return **** THIS WAS REACHED");
|
|
||||||
setRequestStatus({
|
setRequestStatus({
|
||||||
message: "Could not finish transaction",
|
message: "Could not finish transaction",
|
||||||
loading: false,
|
loading: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user