diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-10-14 09:32:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-14 13:02:20 +0530 |
commit | 52211095aab71f8b59b093b19ae34c222be9f390 (patch) | |
tree | 28f24a9be5ee5577667cdd396fb3fc64fc861e65 /src/stores | |
parent | chore: convert class components to functional (#2065) (diff) | |
download | ferdium-app-52211095aab71f8b59b093b19ae34c222be9f390.tar.gz ferdium-app-52211095aab71f8b59b093b19ae34c222be9f390.tar.zst ferdium-app-52211095aab71f8b59b093b19ae34c222be9f390.zip |
chore: convert various JS to TS (#2062)
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/lib/Reaction.ts (renamed from src/stores/lib/Reaction.js) | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/stores/lib/Reaction.js b/src/stores/lib/Reaction.ts index 7e1bc685e..0ca24a6fa 100644 --- a/src/stores/lib/Reaction.js +++ b/src/stores/lib/Reaction.ts | |||
@@ -20,12 +20,10 @@ export default class Reaction { | |||
20 | 20 | ||
21 | stop() { | 21 | stop() { |
22 | if (this.isRunning) { | 22 | if (this.isRunning) { |
23 | this.dispose(); | 23 | this.dispose?.(); |
24 | this.isRunning = false; | 24 | this.isRunning = false; |
25 | } | 25 | } |
26 | } | 26 | } |
27 | } | 27 | } |
28 | 28 | ||
29 | export const createReactions = (reactions) => ( | 29 | export const createReactions = reactions => reactions.map(r => new Reaction(r)); |
30 | reactions.map((r) => new Reaction(r)) | ||
31 | ); | ||