fix redraw problem

This commit is contained in:
Florian Dold 2016-10-18 02:40:46 +02:00
parent ffd802a23d
commit 6fbe8c4787

View File

@ -198,13 +198,13 @@ class WalletBalance extends preact.Component<any, any> {
if (resp.error) { if (resp.error) {
this.gotError = true; this.gotError = true;
console.error("could not retrieve balances", resp); console.error("could not retrieve balances", resp);
this.forceUpdate(); this.setState({});
return; return;
} }
this.gotError = false; this.gotError = false;
console.log("got wallet", resp); console.log("got wallet", resp);
this.myWallet = resp.balances; this.myWallet = resp.balances;
this.forceUpdate(); this.setState({});
}); });
} }