precommit hook changes

This commit is contained in:
Mikhail Mikheev 2019-03-25 15:10:37 +04:00
parent c62271bcb8
commit d7fedee8a9
3 changed files with 2 additions and 3 deletions

View File

@ -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'

View File

@ -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))
}
}

View File

@ -28,8 +28,6 @@ describe('Safe - redux balance property', () => {
const safeBalances: Map<string, Token> | 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)