diff options
Diffstat (limited to 'src/features/communityRecipes/store.js')
-rw-r--r-- | src/features/communityRecipes/store.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/features/communityRecipes/store.js b/src/features/communityRecipes/store.js index 3a60e5449..a3614dd11 100644 --- a/src/features/communityRecipes/store.js +++ b/src/features/communityRecipes/store.js | |||
@@ -1,11 +1,9 @@ | |||
1 | import { computed, observable } from 'mobx'; | 1 | import { computed } from 'mobx'; |
2 | import { FeatureStore } from '../utils/FeatureStore'; | 2 | import { FeatureStore } from '../utils/FeatureStore'; |
3 | 3 | ||
4 | const debug = require('debug')('Ferdi:feature:communityRecipes:store'); | 4 | const debug = require('debug')('Ferdi:feature:communityRecipes:store'); |
5 | 5 | ||
6 | export class CommunityRecipesStore extends FeatureStore { | 6 | export class CommunityRecipesStore extends FeatureStore { |
7 | @observable isCommunityRecipesIncludedInCurrentPlan = true; | ||
8 | |||
9 | start(stores, actions) { | 7 | start(stores, actions) { |
10 | debug('start'); | 8 | debug('start'); |
11 | this.stores = stores; | 9 | this.stores = stores; |
@@ -21,7 +19,8 @@ export class CommunityRecipesStore extends FeatureStore { | |||
21 | if (!this.stores) return []; | 19 | if (!this.stores) return []; |
22 | 20 | ||
23 | return this.stores.recipePreviews.dev.map((r) => { | 21 | return this.stores.recipePreviews.dev.map((r) => { |
24 | r.isDevRecipe = !!r.author.find(a => a.email === this.stores.user.data.email); | 22 | // TODO: Need to figure out if this is even necessary/used |
23 | r.isDevRecipe = !!r.author.find((a) => a.email === this.stores.user.data.email); | ||
25 | 24 | ||
26 | return r; | 25 | return r; |
27 | }); | 26 | }); |