From 1c95804b54dce7c2459f6579c19199bf8faf75ef Mon Sep 17 00:00:00 2001 From: Mikhail Mikheev Date: Mon, 22 Apr 2019 16:43:33 +0400 Subject: [PATCH 1/2] fix loading active tokens error --- src/logic/tokens/utils/tokensStorage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/logic/tokens/utils/tokensStorage.js b/src/logic/tokens/utils/tokensStorage.js index 0af8417a..b2b4a3b0 100644 --- a/src/logic/tokens/utils/tokensStorage.js +++ b/src/logic/tokens/utils/tokensStorage.js @@ -19,10 +19,10 @@ export const saveActiveTokens = async (tokens: Map) => { } } -export const getActiveTokens = async (): Promise> => { +export const getActiveTokens = async (): Promise> => { const data = await loadFromStorage(ACTIVE_TOKENS_KEY) - return data || Map({}) + return data || {} } export const getCustomTokens = async (): Promise> => { From 24b51ba10deceb92923e7142faca585301b3ead4 Mon Sep 17 00:00:00 2001 From: Mikhail Mikheev Date: Mon, 22 Apr 2019 17:49:52 +0400 Subject: [PATCH 2/2] fix eslint disable statement duplication --- src/routes/safe/store/actions/fetchSafe.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/routes/safe/store/actions/fetchSafe.js b/src/routes/safe/store/actions/fetchSafe.js index 17ef2f3a..ffb800a0 100644 --- a/src/routes/safe/store/actions/fetchSafe.js +++ b/src/routes/safe/store/actions/fetchSafe.js @@ -10,8 +10,6 @@ import { getGnosisSafeContract } from '~/logic/contracts/safeContracts' import { getWeb3, getBalanceInEtherOf } from '~/logic/wallets/getWeb3' import updateSafe from '~/routes/safe/store/actions/updateSafe' -// eslint-disable-next-line -// eslint-disable-next-line const buildOwnersFrom = ( safeOwners: string[], storedOwners: Map, // eslint-disable-next-line