diff --git a/app/components/TimeNode/TimeNodeSettings.js b/app/components/TimeNode/TimeNodeSettings.js index a5203451..68fb5b68 100644 --- a/app/components/TimeNode/TimeNodeSettings.js +++ b/app/components/TimeNode/TimeNodeSettings.js @@ -7,7 +7,6 @@ class TimeNodeSettings extends Component { constructor(props) { super(props); this.resetWallet = this.resetWallet.bind(this); - this.clearStats = this.clearStats.bind(this); } resetWallet() { @@ -15,38 +14,10 @@ class TimeNodeSettings extends Component { this.props.timeNodeStore.clearStats(); } - clearStats() { - this.props.timeNodeStore.clearStats(); - this.props.timeNodeStore.updateStats(); - } - render() { return (
-
-
-
- Clear Stats -
-
-
-
-
-

You can reset your TimeNode statistics here - claimed ETH, executed transactions counter and logs.

-
-
- -
-
-
-
-
diff --git a/app/stores/TimeNodeStore.js b/app/stores/TimeNodeStore.js index a71a1422..4c1edacf 100644 --- a/app/stores/TimeNodeStore.js +++ b/app/stores/TimeNodeStore.js @@ -98,6 +98,7 @@ export default class TimeNodeStore { } else if (type === EAC_WORKER_MESSAGE_TYPES.CLEAR_STATS) { if (event.data.result) { showNotification('Cleared the stats.', 'success'); + this.updateStats(); } else { showNotification('Unable to clear the stats.', 'danger', 3000); }