From fef6260be03d1fe0bf65e1b6fafb8f10dbf8d2af Mon Sep 17 00:00:00 2001 From: Bhavesh Gupta <109822630+barrytra@users.noreply.github.com> Date: Tue, 4 Jun 2024 13:55:23 +0530 Subject: [PATCH] fix(fb): display error alert in modal --- src/components/fb/CreateFidelityBond.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/fb/CreateFidelityBond.tsx b/src/components/fb/CreateFidelityBond.tsx index 12576bb2..6179aaac 100644 --- a/src/components/fb/CreateFidelityBond.tsx +++ b/src/components/fb/CreateFidelityBond.tsx @@ -618,7 +618,6 @@ const CreateFidelityBond = ({ otherFidelityBondExists, wallet, walletInfo, onDon return ( <div className={styles.container}> - {alert && <Alert {...alert} className="mt-0" onClose={() => setAlert(undefined)} />} {lockDate && timelockedAddress && selectedJar !== undefined && ( <PaymentConfirmModal isShown={showConfirmInputsModal} @@ -685,6 +684,7 @@ const CreateFidelityBond = ({ otherFidelityBondExists, wallet, walletInfo, onDon <rb.Modal.Title>{t('earn.fidelity_bond.create_fidelity_bond.title')}</rb.Modal.Title> </rb.Modal.Header> <rb.Modal.Body> + {alert && <Alert {...alert} className="mt-0" onClose={() => setAlert(undefined)} />} <div className="mb-5">{stepComponent(step)}</div> <div className="d-flex flex-column gap-2"> {!isLoading && primaryButtonText(step) !== null && (