Skip to content

Commit

Permalink
Check for undefined not falsy (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnjamin authored May 16, 2024
1 parent 68ceb49 commit 954df53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/evm/protocols/cctp/src/circleBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class EvmCircleBridge<N extends Network, C extends EvmChains>
) as bigint;

const circleChainId = circle.circleChainId.get(network, chain);
if (!circleChainId)
if (circleChainId === undefined)
throw new Error(`Circle chain id not found for ${network} ${chain}`);
this.circleChainId = circleChainId;

Expand Down

0 comments on commit 954df53

Please sign in to comment.