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)