diff options
author | 2021-10-29 10:12:36 +0200 | |
---|---|---|
committer | 2021-10-29 13:42:36 +0530 | |
commit | 63fc46fd3f61cdee254e574338e06af4d9bb4dcb (patch) | |
tree | 3cd8083fdaf78dfb1511f15eefe77e36eb1e0d69 /src/stores/FeaturesStore.js | |
parent | 5.6.3-nightly.46 [skip ci] (diff) | |
download | ferdium-app-63fc46fd3f61cdee254e574338e06af4d9bb4dcb.tar.gz ferdium-app-63fc46fd3f61cdee254e574338e06af4d9bb4dcb.tar.zst ferdium-app-63fc46fd3f61cdee254e574338e06af4d9bb4dcb.zip |
chore: use caret for dependencies instead of locked versions (#2162)
- use caret for all dependencies except brittle ones like e.g. typescript
- remove 'save-exact' true from .npmrc
- fix various prettier formatting issues
Diffstat (limited to 'src/stores/FeaturesStore.js')
-rw-r--r-- | src/stores/FeaturesStore.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/stores/FeaturesStore.js b/src/stores/FeaturesStore.js index fdb502b6b..26a045314 100644 --- a/src/stores/FeaturesStore.js +++ b/src/stores/FeaturesStore.js | |||
@@ -24,7 +24,7 @@ export default class FeaturesStore extends Store { | |||
24 | 'features', | 24 | 'features', |
25 | ); | 25 | ); |
26 | 26 | ||
27 | @observable features = { }; | 27 | @observable features = {}; |
28 | 28 | ||
29 | async setup() { | 29 | async setup() { |
30 | this.registerReactions([ | 30 | this.registerReactions([ |
@@ -37,13 +37,11 @@ export default class FeaturesStore extends Store { | |||
37 | } | 37 | } |
38 | 38 | ||
39 | @computed get anonymousFeatures() { | 39 | @computed get anonymousFeatures() { |
40 | return ( | 40 | return this.defaultFeaturesRequest.execute().result || {}; |
41 | this.defaultFeaturesRequest.execute().result || {} | ||
42 | ); | ||
43 | } | 41 | } |
44 | 42 | ||
45 | _updateFeatures = () => { | 43 | _updateFeatures = () => { |
46 | const features = { }; | 44 | const features = {}; |
47 | if (this.stores.user.isLoggedIn) { | 45 | if (this.stores.user.isLoggedIn) { |
48 | let requestResult = {}; | 46 | let requestResult = {}; |
49 | try { | 47 | try { |