fix reload balance on request topup
This commit is contained in:
@ -60,6 +60,7 @@ const TransactionTopup = () => {
|
|||||||
});
|
});
|
||||||
console.log(response);
|
console.log(response);
|
||||||
if (response?.status == true) {
|
if (response?.status == true) {
|
||||||
|
await fetchWallets();
|
||||||
toast.success('Success Request Topup');
|
toast.success('Success Request Topup');
|
||||||
} else {
|
} else {
|
||||||
toast.warning(`${response?.message}`);
|
toast.warning(`${response?.message}`);
|
||||||
@ -71,7 +72,6 @@ const TransactionTopup = () => {
|
|||||||
} finally {
|
} finally {
|
||||||
setIsSubmitting(false);
|
setIsSubmitting(false);
|
||||||
setShowConfirmation(false);
|
setShowConfirmation(false);
|
||||||
fetchWallets();
|
|
||||||
ResetForm();
|
ResetForm();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user