PR review fixes
This commit is contained in:
parent
1f99bf7b8b
commit
fb881df323
|
@ -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 = []
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue