aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-04-28 08:08:57 +0800
committerDan <danjm.com@gmail.com>2018-04-28 08:08:57 +0800
commit9f9e8789cc707fa3c53d64edeb2d51e84defcbc6 (patch)
tree311f2752ff1df0f623bd8b80a8b676ec7c71e27b /ui
parentb71dbf52d190a597ad3e06e4717cc641e1abe57a (diff)
downloadtangerine-wallet-browser-9f9e8789cc707fa3c53d64edeb2d51e84defcbc6.tar
tangerine-wallet-browser-9f9e8789cc707fa3c53d64edeb2d51e84defcbc6.tar.gz
tangerine-wallet-browser-9f9e8789cc707fa3c53d64edeb2d51e84defcbc6.tar.bz2
tangerine-wallet-browser-9f9e8789cc707fa3c53d64edeb2d51e84defcbc6.tar.lz
tangerine-wallet-browser-9f9e8789cc707fa3c53d64edeb2d51e84defcbc6.tar.xz
tangerine-wallet-browser-9f9e8789cc707fa3c53d64edeb2d51e84defcbc6.tar.zst
tangerine-wallet-browser-9f9e8789cc707fa3c53d64edeb2d51e84defcbc6.zip
Simplify return of existing token in getSymbolAndDecimals
Diffstat (limited to 'ui')
-rw-r--r--ui/app/token-util.js5
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 = []