add a todo comment

This commit is contained in:
Mikhail Mikheev 2019-03-19 14:49:06 +04:00
parent 4bc3ac360b
commit 5c358764d1
3 changed files with 108 additions and 264 deletions

350
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -14,6 +14,9 @@ import {
LOAD_ADDRESS,
} from './routes'
// TODO: Use react 16.6 features
// https://blog.logrocket.com/lazy-loading-components-in-react-16-6-6cea535c0b52
const Safe = Loadable({
loader: () => import('./safe/container'),
loading: Loader,

View File

@ -23,18 +23,17 @@ export const getSafeEthToken = async (safeAddress: string) => {
}
export const calculateActiveErc20TokensFrom = (tokens: List<Token>) => {
const addresses = List().withMutations(list =>
tokens.forEach((token: Token) => {
if (isEther(token.get('symbol'))) {
return
}
const addresses = List().withMutations(list => tokens.forEach((token: Token) => {
if (isEther(token.get('symbol'))) {
return
}
if (!token.get('status')) {
return
}
if (!token.get('status')) {
return
}
list.push(token.address)
}))
list.push(token.address)
}))
return addresses
}