Skip to content

Commit 600c1f1

Browse files
committed
Fix network issue
1 parent a890c17 commit 600c1f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/web/src/components/BridgeModal/BridgeForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const BridgeForm = () => {
3232

3333
const l1Chain = PUBLIC_DEFAULT_CHAINS[0]
3434
const [l2Chain, setL2Chain] = useState(
35-
appChain !== l1Chain ? appChain : PUBLIC_DEFAULT_CHAINS[1]
35+
appChain.id !== l1Chain.id ? appChain : PUBLIC_DEFAULT_CHAINS[1]
3636
)
3737

3838
const isWalletOnL1 = userChain?.id === l1Chain.id
@@ -107,7 +107,7 @@ export const BridgeForm = () => {
107107
onSubmit={handleSubmit}
108108
validateOnBlur
109109
validateOnMount={false}
110-
validateOnChange={true}
110+
validateOnChange={false}
111111
>
112112
{({ errors, touched, isValid, submitForm }) => {
113113
const isAmountInvalid = !!errors.amount && touched.amount

0 commit comments

Comments
 (0)