From 9f9e8789cc707fa3c53d64edeb2d51e84defcbc6 Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 27 Apr 2018 21:38:57 -0230 Subject: [PATCH] Simplify return of existing token in getSymbolAndDecimals --- ui/app/token-util.js | 5 +---- 1 file changed, 1 insertion(+), 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 = []