updated error scenario for the modal header

This commit was merged in pull request #368.
This commit is contained in:
2023-08-01 12:05:27 +01:00
parent 172f0ccbce
commit f46c6232b0
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"
) : (
<>