Remove fetching Safes in a loop

This commit is contained in:
Germán Martínez 2019-07-20 21:15:52 +02:00
parent a963c09050
commit 3ee8a5196f
1 changed files with 3 additions and 4 deletions

View File

@ -14,6 +14,8 @@ export type Props = Actions &
const TIMEOUT = process.env.NODE_ENV === 'test' ? 1500 : 5000 const TIMEOUT = process.env.NODE_ENV === 'test' ? 1500 : 5000
class SafeView extends React.Component<Props> { class SafeView extends React.Component<Props> {
intervalId: IntervalID
componentDidMount() { componentDidMount() {
const { const {
fetchSafe, activeTokens, safeUrl, fetchTokenBalances, fetchTokens, fetchSafe, activeTokens, safeUrl, fetchTokenBalances, fetchTokens,
@ -44,15 +46,12 @@ class SafeView extends React.Component<Props> {
checkForUpdates() { checkForUpdates() {
const { const {
safeUrl, activeTokens, fetchSafe, fetchTokenBalances, safeUrl, activeTokens, fetchTokenBalances,
} = this.props } = this.props
fetchSafe(safeUrl, true)
fetchTokenBalances(safeUrl, activeTokens) fetchTokenBalances(safeUrl, activeTokens)
} }
intervalId: IntervalID
render() { render() {
const { const {
safe, safe,