diff options
author | 2018-12-10 20:26:09 +0100 | |
---|---|---|
committer | 2018-12-10 20:26:09 +0100 | |
commit | 936415c0b7e44db9e6461378d08f3c479de2c6a5 (patch) | |
tree | 5a26cb6d0c4c61973ef922c3c99ce1cc9f97ddd4 /src/features | |
parent | Only render service handler when service is selected (diff) | |
download | ferdium-app-936415c0b7e44db9e6461378d08f3c479de2c6a5.tar.gz ferdium-app-936415c0b7e44db9e6461378d08f3c479de2c6a5.tar.zst ferdium-app-936415c0b7e44db9e6461378d08f3c479de2c6a5.zip |
fix countdown state
Diffstat (limited to 'src/features')
-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(); |