PR review fixes

This commit is contained in:
Mikhail Mikheev 2019-04-25 18:45:09 +04:00
parent 1f99bf7b8b
commit fb881df323
2 changed files with 2 additions and 2 deletions

View File

@ -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 = []
}

View File

@ -68,7 +68,6 @@ export default handleActions<State, *>(
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)