Skip to content

Commit

Permalink
Merge pull request #135 from galacticcouncil/86bzj9quw
Browse files Browse the repository at this point in the history
add whitelist flag for external tokens
  • Loading branch information
nohaapav authored Jul 15, 2024
2 parents 87b1465 + 78ca965 commit f9afaa7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/apps/src/utils/asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import { MetadataStore } from '@galacticcouncil/ui';
*/
export const isExternalAssetWhitelisted = (asset: Asset) => {
const whitelist = MetadataStore.getInstance().externalWhitelist();
return asset.type === 'External' ? whitelist.includes(asset.id) : true;
return asset.type === 'External'
? whitelist.includes(asset.id) || !!asset.isWhiteListed
: true;
};

/**
Expand Down

0 comments on commit f9afaa7

Please sign in to comment.