Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
spsjvc committed Oct 9, 2024
1 parent e33bfc8 commit 645889d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/types/ParentChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export function validateParentChain<TChain extends Chain | undefined>(
throw new Error(`Parent chain not supported: ${chainId}`);
}

return { chainId, isCustom: isCustom(chainId) } as
| { chainId: number; isCustom: true }
| { chainId: ParentChainId; isCustom: false };
if (isCustom(chainId)) {
return { chainId, isCustom: true };
}

return { chainId: chainId as ParentChainId, isCustom: false };
}

0 comments on commit 645889d

Please sign in to comment.