complete popup fixed(logic error) #368

Merged
ameye merged 1 commits from tx_ref-change into master 2023-08-01 11:07:16 +00:00
2 changed files with 2 additions and 3 deletions
@@ -134,8 +134,6 @@ function ConfirmAddFund({
callback: (response) => {
debouncedSuccessPayment(); //delays the call for 5 secs
if (response?.status === "successful")
return dispatch(tableReload({ type: "WALLETTABLE" }));
setTimeout(() => {
closePaymentModal();
setConfirmCredit((prev) => ({
@@ -25,7 +25,8 @@ const CreditPopup = ({ details, onClose, situation, walletItem }) => {
<div className="logout-modal-header w-full flex items-center justify-between lg:p-6 px-[30px] py-[23px] border-b dark:border-[#5356fb29] border-light-purple">
<h1 className="text-26 font-bold text-dark-gray dark:text-white tracking-wide">
{confirmCredit?.show?.acceptConfirm?.state &&
confirmCredit?.data?.internal_return < 0 ? (
(confirmCredit?.data?.internal_return < 0 ||
confirmCredit?.data?.status !== "successful") ? (
"Credit Unsuccessful"
) : (
<>