We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a890c17 commit 600c1f1Copy full SHA for 600c1f1
apps/web/src/components/BridgeModal/BridgeForm.tsx
@@ -32,7 +32,7 @@ export const BridgeForm = () => {
32
33
const l1Chain = PUBLIC_DEFAULT_CHAINS[0]
34
const [l2Chain, setL2Chain] = useState(
35
- appChain !== l1Chain ? appChain : PUBLIC_DEFAULT_CHAINS[1]
+ appChain.id !== l1Chain.id ? appChain : PUBLIC_DEFAULT_CHAINS[1]
36
)
37
38
const isWalletOnL1 = userChain?.id === l1Chain.id
@@ -107,7 +107,7 @@ export const BridgeForm = () => {
107
onSubmit={handleSubmit}
108
validateOnBlur
109
validateOnMount={false}
110
- validateOnChange={true}
+ validateOnChange={false}
111
>
112
{({ errors, touched, isValid, submitForm }) => {
113
const isAmountInvalid = !!errors.amount && touched.amount
0 commit comments