Remove fetching Safes in a loop
This commit is contained in:
parent
a963c09050
commit
3ee8a5196f
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue