Skip to content

Commit

Permalink
update hasPoolAsset logic (#946)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnujoow authored Nov 1, 2022
1 parent ad79047 commit 5bce49f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pools/src/weighted.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class WeightedPool implements Pool {

hasPoolAsset(denom: string): boolean {
const poolAsset = this.poolAssets.find((asset) => asset.denom === denom);
return poolAsset != null;
return poolAsset !== undefined;
}

get totalWeight(): Int {
Expand Down

2 comments on commit 5bce49f

@vercel
Copy link

@vercel vercel bot commented on 5bce49f Nov 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 5bce49f Nov 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.