diff options
author | Stefan Malzner <stefan@adlk.io> | 2019-08-09 08:33:13 +0200 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2019-08-09 08:33:13 +0200 |
commit | 74c1ee9bc3460b6de4bd153a0be873819f7aacd6 (patch) | |
tree | c8b915d15691adcbd92baea157344db1f0447889 /src/stores/lib/Reaction.js | |
parent | Add option to subscribe to trial via account dashboard (diff) | |
parent | bump version (diff) | |
download | ferdium-app-74c1ee9bc3460b6de4bd153a0be873819f7aacd6.tar.gz ferdium-app-74c1ee9bc3460b6de4bd153a0be873819f7aacd6.tar.zst ferdium-app-74c1ee9bc3460b6de4bd153a0be873819f7aacd6.zip |
Merge branch 'develop' into feature/new-pricing
Diffstat (limited to 'src/stores/lib/Reaction.js')
-rw-r--r-- | src/stores/lib/Reaction.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stores/lib/Reaction.js b/src/stores/lib/Reaction.js index f2642908f..f8009b7f6 100644 --- a/src/stores/lib/Reaction.js +++ b/src/stores/lib/Reaction.js | |||
@@ -13,15 +13,15 @@ export default class Reaction { | |||
13 | 13 | ||
14 | start() { | 14 | start() { |
15 | if (!this.isRunning) { | 15 | if (!this.isRunning) { |
16 | this.dispose = autorun(() => this.reaction()); | 16 | this.dispose = autorun(this.reaction); |
17 | this.isActive = true; | 17 | this.isRunning = true; |
18 | } | 18 | } |
19 | } | 19 | } |
20 | 20 | ||
21 | stop() { | 21 | stop() { |
22 | if (this.isRunning) { | 22 | if (this.isRunning) { |
23 | this.dispose(); | 23 | this.dispose(); |
24 | this.isActive = false; | 24 | this.isRunning = false; |
25 | } | 25 | } |
26 | } | 26 | } |
27 | } | 27 | } |