Added Credit Limit & Pending Jobs Bug & removed reload for credit

This commit is contained in:
2023-07-27 11:34:27 +01:00
parent 994060d929
commit 28ab1116e9
6 changed files with 23 additions and 26 deletions
@@ -101,18 +101,10 @@ function ConfirmNairaWithdraw({
});
};
const getBack = () => {
action();
setShowNairaWithdraw({
show: true,
data: {},
});
};
const completeWithdrawal = () => {
action();
window.location.reload(true);
};
// const completeWithdrawal = () => {
// action();
// window.location.reload(true);
// };
return (
<ModalCom action={action} situation={situation} className="edit-popup">
@@ -413,7 +405,7 @@ function ConfirmNairaWithdraw({
<button
onClick={
completeNairaWithdraw.show
? completeWithdrawal
? action
: completeNairaWithdraw?.state?.internal_return < 0
? action
: handleSubmit