diff --git a/contracts/src/bridge/frontend/src/stores/wallet-store.ts b/contracts/src/bridge/frontend/src/stores/wallet-store.ts index 307ccea824..53ee3e9202 100644 --- a/contracts/src/bridge/frontend/src/stores/wallet-store.ts +++ b/contracts/src/bridge/frontend/src/stores/wallet-store.ts @@ -142,7 +142,7 @@ const useWalletStore = create((set, get) => ({ ? WalletNetwork.L2_TEN_TESTNET : WalletNetwork.L1_SEPOLIA; - await provider.request({ + await provider?.request({ method: requestMethods.switchNetwork, params: [{ chainId: desiredNetwork }], });