Skip to content

Commit

Permalink
ui(fb): back button disbled at selectDate step
Browse files Browse the repository at this point in the history
  • Loading branch information
barrytra committed Oct 3, 2024
1 parent 98ae327 commit 796191d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/fb2/CreateFidelityBond.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ const CreateFidelityBond2 = ({ otherFidelityBondExists, wallet, walletInfo, onDo
</rb.Modal.Header>
<rb.Modal.Body>
{alert && <Alert {...alert} className="mt-0" onClose={() => setAlert(undefined)} />}
{bondWithSelectedLockDateAlreadyExists && (
{bondWithSelectedLockDateAlreadyExists && timelockedAddress && (
<Alert
className="text-start mt-2"
variant="warning"
Expand Down Expand Up @@ -538,7 +538,12 @@ const CreateFidelityBond2 = ({ otherFidelityBondExists, wallet, walletInfo, onDo
<rb.Modal.Footer>
<div className="d-flex flex-row gap-2 w-100">
{!isLoading && secondaryButtonText(step) !== null && (
<rb.Button className="w-100" variant="none" onClick={onSecondaryButtonClicked}>
<rb.Button
className="w-100"
variant="light"
disabled={nextStep(step) === steps.selectJar}
onClick={onSecondaryButtonClicked}
>
{secondaryButtonText(step)}
</rb.Button>
)}
Expand Down

0 comments on commit 796191d

Please sign in to comment.