Skip to content

Commit

Permalink
feat: send user to review screen on click
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseRFelix committed Jul 2, 2024
1 parent 858aaca commit cbf1037
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/web/components/bridge/immersive/amount-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1322,14 +1322,18 @@ export const AmountScreen = observer(
isLoadingBridgeQuote ||
isLoadingBridgeTransaction ||
cryptoAmount === "" ||
cryptoAmount === "0"
cryptoAmount === "0" ||
isNil(selectedQuote)
}
className="w-full text-h6 font-h6"
variant={
warnUserOfSlippage || warnUserOfPriceImpact
? "destructive"
: "default"
}
onClick={() => {
setCurrentScreen(ImmersiveBridgeScreens.Review);
}}
>
{buttonText}
</Button>
Expand Down

0 comments on commit cbf1037

Please sign in to comment.