WA-521 Not pulling transactions history in safe's view

This commit is contained in:
apanizo 2018-08-17 17:52:53 +02:00
parent 230c792e92
commit 1781462142
2 changed files with 1 additions and 6 deletions

View File

@ -1,16 +1,13 @@
// @flow
import fetchSafe from '~/routes/safe/store/actions/fetchSafe'
import fetchTransactions from '~/routes/safe/store/actions/fetchTransactions'
import { fetchTokens } from '~/routes/tokens/store/actions/fetchTokens'
export type Actions = {
fetchSafe: typeof fetchSafe,
fetchTokens: typeof fetchTokens,
fetchTransactions: typeof fetchTransactions,
}
export default {
fetchSafe,
fetchTokens,
fetchTransactions,
}

View File

@ -17,13 +17,12 @@ class SafeView extends React.PureComponent<Props> {
componentDidMount() {
this.intervalId = setInterval(() => {
const {
safe, fetchTokens, fetchSafe, fetchTransactions,
safe, fetchTokens, fetchSafe,
} = this.props
if (!safe) {
return
}
const safeAddress = safe.get('address')
fetchTransactions(safeAddress)
fetchTokens(safeAddress)
fetchSafe(safe)
}, TIMEOUT)
@ -37,7 +36,6 @@ class SafeView extends React.PureComponent<Props> {
if (this.props.safe) {
const safeAddress = this.props.safe.get('address')
this.props.fetchTokens(safeAddress)
this.props.fetchTransactions(safeAddress)
}
}