From d7fedee8a985eecefaa873970628c85458098d43 Mon Sep 17 00:00:00 2001 From: Mikhail Mikheev Date: Mon, 25 Mar 2019 15:10:37 +0400 Subject: [PATCH] precommit hook changes --- src/logic/tokens/store/reducer/tokens.js | 1 + src/logic/tokens/utils/activeTokensStorage.js | 2 +- src/test/safe.redux.balance.test.js | 2 -- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/logic/tokens/store/reducer/tokens.js b/src/logic/tokens/store/reducer/tokens.js index 59f279d2..105a26a9 100644 --- a/src/logic/tokens/store/reducer/tokens.js +++ b/src/logic/tokens/store/reducer/tokens.js @@ -10,6 +10,7 @@ import enableToken, { ENABLE_TOKEN } from '~/logic/tokens/store/actions/enableTo import { setActiveTokenAddresses, getActiveTokenAddresses, + removeFromActiveTokens, } from '~/logic/tokens/utils/activeTokensStorage' export const TOKEN_REDUCER_ID = 'tokens' diff --git a/src/logic/tokens/utils/activeTokensStorage.js b/src/logic/tokens/utils/activeTokensStorage.js index 0d5c4924..529a34f9 100644 --- a/src/logic/tokens/utils/activeTokensStorage.js +++ b/src/logic/tokens/utils/activeTokensStorage.js @@ -70,4 +70,4 @@ export const removeFromActiveTokens = (safeAddress: string, tokenAddress: string const activeTokens = getActiveTokenAddresses(safeAddress) const index = activeTokens.indexOf(tokenAddress) setActiveTokenAddresses(safeAddress, activeTokens.delete(index)) -} \ No newline at end of file +} diff --git a/src/test/safe.redux.balance.test.js b/src/test/safe.redux.balance.test.js index 27ecd770..e20f34c1 100644 --- a/src/test/safe.redux.balance.test.js +++ b/src/test/safe.redux.balance.test.js @@ -28,8 +28,6 @@ describe('Safe - redux balance property', () => { const safeBalances: Map | typeof undefined = tokens.get(address) if (!safeBalances) throw new Error('No tokens available, probably failed to fetch') expect(safeBalances.size).toBe(11) - - console.log(safeBalances.entries()) // safeBalances.forEach((token: string) => { // const record = safeBalances.get(token)