Fix stupid date logic
This commit is contained in:
parent
d15c787469
commit
96cf74af80
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user