Fix bug with error not resetting

This commit is contained in:
Nicholas Zuber 2018-11-12 19:34:23 -05:00
parent 206a4f5b80
commit 37dea42397

View File

@ -154,6 +154,7 @@ class NotificationsPage extends React.Component {
this.syncer = setInterval(() => {
this.props.notificationsApi.fetchNotificationsSync()
.then(error => this.setState({error: null}))
.catch(error => this.setState({error}));
this.setState({currentTime: moment()});
}, 8 * 1000);