Skip to content

Commit

Permalink
fix asset selector
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjah committed Aug 30, 2024
1 parent 060de63 commit 9bc7358
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/token/AssetSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export function AssetSelector(props: AssetSelectorProps) {
});
}

const selectedAssetKey: number = selectedAsset
? assets?.indexOf(selectedAsset) || 0
const selectedAssetKey = selectedAsset
? assets?.findIndex((asset) => asset.address === selectedAsset.address) || 0
: 0;

return (
Expand Down

0 comments on commit 9bc7358

Please sign in to comment.