diff options
Convert decimals to string in getSymbolAndDecimals; return null for symbol or decimals.
Diffstat (limited to 'ui/app/token-util.js')
-rw-r--r-- | ui/app/token-util.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/token-util.js b/ui/app/token-util.js index 2ae3b15b9..1b0091826 100644 --- a/ui/app/token-util.js +++ b/ui/app/token-util.js @@ -38,8 +38,8 @@ async function getSymbolAndDecimals (tokenAddress, existingTokens = []) { const [ symbol = [], decimals = [] ] = result return { - symbol: symbol[0], - decimals: decimals[0], + symbol: symbol[0] || null, + decimals: decimals[0] && decimals[0].toString() || null, } } |