diff options
Simplify return of existing token in getSymbolAndDecimals
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/token-util.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ui/app/token-util.js b/ui/app/token-util.js index 1b0091826..920442bfc 100644 --- a/ui/app/token-util.js +++ b/ui/app/token-util.js @@ -17,10 +17,7 @@ function tokenInfoGetter () { async function getSymbolAndDecimals (tokenAddress, existingTokens = []) { const existingToken = existingTokens.find(({ address }) => tokenAddress === address) if (existingToken) { - return { - symbol: existingToken.symbol, - decimals: existingToken.decimals, - } + return existingToken } let result = [] |