From 4cc5f390c406d1b016da5acd276cfe069e52fa9e Mon Sep 17 00:00:00 2001 From: apanizo Date: Fri, 26 Oct 2018 15:14:03 +0200 Subject: [PATCH] #73 Update Safe container. Using fetchTransactions by safe address --- src/routes/safe/container/index.jsx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/routes/safe/container/index.jsx b/src/routes/safe/container/index.jsx index 99231b1a..4a2ede1a 100644 --- a/src/routes/safe/container/index.jsx +++ b/src/routes/safe/container/index.jsx @@ -14,16 +14,11 @@ const TIMEOUT = process.env.NODE_ENV === 'test' ? 1500 : 15000 class SafeView extends React.PureComponent { componentDidMount() { + this.props.fetchSafe(this.props.safeUrl) this.intervalId = setInterval(() => { - const { - safe, fetchTokens, fetchSafe, - } = this.props - if (!safe) { - return - } - const safeAddress = safe.get('address') - fetchTokens(safeAddress) - fetchSafe(safe) + const { safeUrl, fetchTokens, fetchSafe } = this.props + fetchTokens(safeUrl) + fetchSafe(safeUrl) }, TIMEOUT) }