From fb881df3239846ee5b8a0d5d5fdf944a63fe4831 Mon Sep 17 00:00:00 2001 From: Mikhail Mikheev Date: Thu, 25 Apr 2019 18:45:09 +0400 Subject: [PATCH] PR review fixes --- .../components/Balances/Tokens/screens/AddCustomToken/utils.js | 3 ++- src/routes/safe/store/reducer/safe.js | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/safe/components/Balances/Tokens/screens/AddCustomToken/utils.js b/src/routes/safe/components/Balances/Tokens/screens/AddCustomToken/utils.js index 9f65e045..26f5fe1c 100644 --- a/src/routes/safe/components/Balances/Tokens/screens/AddCustomToken/utils.js +++ b/src/routes/safe/components/Balances/Tokens/screens/AddCustomToken/utils.js @@ -7,7 +7,8 @@ export const getSymbolAndDecimalsFromContract = async (tokenAddress: string) => let values try { - values = await Promise.all([token.symbol(), (await token.decimals()).toString()]) + const [symbol, decimals] = await Promise.all([token.symbol(), token.decimals()]) + values = [symbol, decimals.toString()] } catch { values = [] } diff --git a/src/routes/safe/store/reducer/safe.js b/src/routes/safe/store/reducer/safe.js index 48437242..8e90b2cc 100644 --- a/src/routes/safe/store/reducer/safe.js +++ b/src/routes/safe/store/reducer/safe.js @@ -68,7 +68,6 @@ export default handleActions( const tokenAddress = action.payload const newState = state.withMutations((map) => { - console.log(map.keys()) map.keySeq().forEach((safeAddress) => { const safeActiveTokens = map.getIn([safeAddress, 'activeTokens']) const activeTokens = safeActiveTokens.push(tokenAddress)