From 783559f94ef7370d2fef88327c500fbe826ac0b0 Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Thu, 5 Jul 2018 10:34:16 -0230 Subject: Don't update token balances after tracker is stopped --- ui/app/helpers/with-token-tracker.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui/app/helpers/with-token-tracker.js') diff --git a/ui/app/helpers/with-token-tracker.js b/ui/app/helpers/with-token-tracker.js index e24517c18..8608b15f4 100644 --- a/ui/app/helpers/with-token-tracker.js +++ b/ui/app/helpers/with-token-tracker.js @@ -75,6 +75,9 @@ const withTokenTracker = WrappedComponent => { } updateBalance (tokens = []) { + if (!this.tracker.running) { + return + } const [{ string, symbol }] = tokens this.setState({ string, symbol, error: null }) } -- cgit