Skip to content

Commit

Permalink
set mainnet chainId as default
Browse files Browse the repository at this point in the history
  • Loading branch information
iamoskvin committed May 9, 2024
1 parent 73274f8 commit 1396a65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/starknet-react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit 1396a65

Please sign in to comment.