Skip to content

Commit

Permalink
fix: findChain
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1707 committed Mar 29, 2024
1 parent 163da8c commit 6d3a06c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const findChain = (params: {
networkId?: string | null;
}) => {
const { enum: chainEnum, id, serverId, hex, networkId } = params;
if (chainEnum && 'CUSTOM_'.startsWith(chainEnum)) {
if (chainEnum && chainEnum.startsWith('CUSTOM_')) {
return findChain({
id: +chainEnum.replace('CUSTOM_', ''),
});
Expand Down

0 comments on commit 6d3a06c

Please sign in to comment.