Fix stupid date logic

master
Drew DeVault 2018-02-26 13:43:08 -05:00
parent d15c787469
commit 96cf74af80
1 changed files with 2 additions and 2 deletions

View File

@ -3,11 +3,11 @@ import formatDate from '../date';
export default class DateDisplay extends Component {
componentDidMount() {
setInterval(() => this.forceUpdate(), this.interval);
this._interval = setInterval(() => this.forceUpdate(), this.interval);
}
componentWillUnmount() {
clearInterval(this.interval);
clearInterval(this._interval);
}
render() {