fix redraw more problems

This commit is contained in:
Florian Dold 2016-10-18 02:58:46 +02:00
parent 6fbe8c4787
commit 2780418c3e

View File

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