Skip to content

Commit

Permalink
disable confirm button when pre-checks fail
Browse files Browse the repository at this point in the history
  • Loading branch information
gianfra-t committed Dec 16, 2024
1 parent 4a2c67c commit 70333af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/swap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ export const SwapPage = () => {
) : (
<SwapSubmitButton
text={isInitiating ? 'Confirming' : offrampingStarted ? 'Processing Details' : 'Confirm'}
disabled={Boolean(getCurrentErrorMessage()) || !inputAmountIsStable}
disabled={Boolean(getCurrentErrorMessage()) || !inputAmountIsStable || initializeFailed}
pending={isInitiating || offrampingStarted || offrampingState !== undefined}
/>
)}
Expand Down

0 comments on commit 70333af

Please sign in to comment.