diff options
Diffstat (limited to 'src/features/communityRecipes/store.js')
-rw-r--r-- | src/features/communityRecipes/store.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/features/communityRecipes/store.js b/src/features/communityRecipes/store.js index a3614dd11..05e18e2f7 100644 --- a/src/features/communityRecipes/store.js +++ b/src/features/communityRecipes/store.js | |||
@@ -18,11 +18,13 @@ export class CommunityRecipesStore extends FeatureStore { | |||
18 | @computed get communityRecipes() { | 18 | @computed get communityRecipes() { |
19 | if (!this.stores) return []; | 19 | if (!this.stores) return []; |
20 | 20 | ||
21 | return this.stores.recipePreviews.dev.map((r) => { | 21 | return this.stores.recipePreviews.dev.map(recipePreview => { |
22 | // TODO: Need to figure out if this is even necessary/used | 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); | 23 | recipePreview.isDevRecipe = !!recipePreview.author.some( |
24 | author => author.email === this.stores.user.data.email, | ||
25 | ); | ||
24 | 26 | ||
25 | return r; | 27 | return recipePreview; |
26 | }); | 28 | }); |
27 | } | 29 | } |
28 | } | 30 | } |