diff options
author | Dan <danjm.com@gmail.com> | 2018-04-28 08:08:57 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-04-28 08:08:57 +0800 |
commit | 9f9e8789cc707fa3c53d64edeb2d51e84defcbc6 (patch) | |
tree | 311f2752ff1df0f623bd8b80a8b676ec7c71e27b | |
parent | b71dbf52d190a597ad3e06e4717cc641e1abe57a (diff) | |
download | dexon-wallet-9f9e8789cc707fa3c53d64edeb2d51e84defcbc6.tar.gz dexon-wallet-9f9e8789cc707fa3c53d64edeb2d51e84defcbc6.tar.zst dexon-wallet-9f9e8789cc707fa3c53d64edeb2d51e84defcbc6.zip |
Simplify return of existing token in getSymbolAndDecimals
-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 1b009182..920442bf 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 = [] |