diff options
Diffstat (limited to 'src/features/delayApp')
-rw-r--r-- | src/features/delayApp/Component.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/features/delayApp/Component.js b/src/features/delayApp/Component.js index 5c6ceaf86..6e0532c9a 100644 --- a/src/features/delayApp/Component.js +++ b/src/features/delayApp/Component.js | |||
@@ -44,9 +44,9 @@ export default @inject('actions') @injectSheet(styles) @observer class DelayApp | |||
44 | 44 | ||
45 | componentDidMount() { | 45 | componentDidMount() { |
46 | this.countdownInterval = setInterval(() => { | 46 | this.countdownInterval = setInterval(() => { |
47 | this.setState({ | 47 | this.setState(prevState => ({ |
48 | countdown: prevState => ({ value: prevState.countdown - this.countdownIntervalTimeout }), | 48 | countdown: prevState.countdown - this.countdownIntervalTimeout, |
49 | }); | 49 | })); |
50 | 50 | ||
51 | if (this.state.countdown <= 0) { | 51 | if (this.state.countdown <= 0) { |
52 | // reload(); | 52 | // reload(); |