aboutsummaryrefslogtreecommitdiff
path: root/popup
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-10-18 02:40:46 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-10-18 02:40:46 +0200
commit6fbe8c4787ea83e928d245e11e6f82a434d6baa0 (patch)
tree055524bd65b5a6d4c165700edb636f56b899d100 /popup
parentffd802a23dfc251188d694b935842101945d48c9 (diff)
downloadwallet-core-6fbe8c4787ea83e928d245e11e6f82a434d6baa0.tar.xz
fix redraw problem
Diffstat (limited to 'popup')
-rw-r--r--popup/popup.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/popup/popup.tsx b/popup/popup.tsx
index ec9aee7f7..878435a72 100644
--- a/popup/popup.tsx
+++ b/popup/popup.tsx
@@ -198,13 +198,13 @@ class WalletBalance extends preact.Component<any, any> {
if (resp.error) {
this.gotError = true;
console.error("could not retrieve balances", resp);
- this.forceUpdate();
+ this.setState({});
return;
}
this.gotError = false;
console.log("got wallet", resp);
this.myWallet = resp.balances;
- this.forceUpdate();
+ this.setState({});
});
}