mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
[Internal] Fix for Binance token auto update, exclude tokens with no decimals (#14104)
This commit is contained in:
parent
0d58a93ff8
commit
7513e27564
|
@ -76,7 +76,8 @@ export function findImagesToFetch(assetInfoList: BinanceTokenInfo[]): BinanceTok
|
|||
console.log(`Checking for asset images to be fetched`);
|
||||
assetInfoList.forEach((tokenInfo) => {
|
||||
process.stdout.write(`.${tokenInfo.asset} `);
|
||||
if (tokenInfo.assetImg) {
|
||||
// pick assets only if img and decimals is present
|
||||
if (tokenInfo.assetImg && tokenInfo.decimals) {
|
||||
const imagePath = getChainAssetLogoPath(binanceChain, tokenInfo.asset);
|
||||
if (!fs.existsSync(imagePath)) {
|
||||
console.log(chalk.red(`Missing image: ${tokenInfo.asset}`));
|
||||
|
|
Loading…
Reference in New Issue
Block a user