Skip to content

Commit

Permalink
fix: use rome format
Browse files Browse the repository at this point in the history
  • Loading branch information
am-hernandez committed Sep 5, 2024
1 parent caf73e5 commit 5b27f9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/connectors/dedicatedWalletConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export function dedicatedWalletConnector({
if (isLoggedIn) return true

return result !== null
} catch { }
} catch {}
return false
},

Expand Down
5 changes: 1 addition & 4 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
export function normalizeChainId(chainId: string | number | bigint) {
if (typeof chainId === 'string')
return Number.parseInt(
chainId,
chainId.trim().startsWith('0x') ? 16 : 10,
)
return Number.parseInt(chainId, chainId.trim().startsWith('0x') ? 16 : 10)
if (typeof chainId === 'bigint') return Number(chainId)
return chainId
}

0 comments on commit 5b27f9a

Please sign in to comment.