diff options
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 { |