From 1396a655ab4eaca7caeabf0b6a217c06a7045a95 Mon Sep 17 00:00:00 2001 From: iamoskvin Date: Thu, 9 May 2024 11:58:32 +0300 Subject: [PATCH] set mainnet chainId as default --- src/hooks/starknet-react.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/starknet-react.ts b/src/hooks/starknet-react.ts index 9deb4511..5e62e30c 100644 --- a/src/hooks/starknet-react.ts +++ b/src/hooks/starknet-react.ts @@ -46,7 +46,7 @@ export const useAccountDetails = (): { }) const chainId = useMemo(() => { - if (!connectedChainId || !connectedChainId.data) return undefined + if (!connectedChainId || !connectedChainId.data) return ChainId.MAINNET return connectedChainId.data }, [connectedChainId, address])