From 3ee8a5196f1253c867e2684e0310524657a0155d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Mart=C3=ADnez?= Date: Sat, 20 Jul 2019 21:15:52 +0200 Subject: [PATCH] Remove fetching Safes in a loop --- src/routes/safe/container/index.jsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/routes/safe/container/index.jsx b/src/routes/safe/container/index.jsx index 48ad1ed3..322c1e1b 100644 --- a/src/routes/safe/container/index.jsx +++ b/src/routes/safe/container/index.jsx @@ -14,6 +14,8 @@ export type Props = Actions & const TIMEOUT = process.env.NODE_ENV === 'test' ? 1500 : 5000 class SafeView extends React.Component { + intervalId: IntervalID + componentDidMount() { const { fetchSafe, activeTokens, safeUrl, fetchTokenBalances, fetchTokens, @@ -44,15 +46,12 @@ class SafeView extends React.Component { checkForUpdates() { const { - safeUrl, activeTokens, fetchSafe, fetchTokenBalances, + safeUrl, activeTokens, fetchTokenBalances, } = this.props - fetchSafe(safeUrl, true) fetchTokenBalances(safeUrl, activeTokens) } - intervalId: IntervalID - render() { const { safe,