evmos / burn-auction-dapp

Evmos chain's burn auction dApp
Other
0 stars 1 forks source link

Add fallback value when tokenMetadata are not found #8

Closed sandoche closed 2 months ago

sandoche commented 2 months ago

Instead of:

    // TODO: handle the case where the token is not found
    if (!tokenMetadata) {
      return {
        coingeckoId: '',
        denom: token.denom,
        name: '',
        ticker: '',
        amount: token.amount,
        valueInUsd: 0,
        iconUrl: '',
      };
    }

Put some "Unknown token symbol"