diff options
author | kytwb <kytwb@pm.me> | 2021-12-19 15:43:09 +0100 |
---|---|---|
committer | kytwb <kytwb@pm.me> | 2021-12-19 15:43:09 +0100 |
commit | 4b909b13fbb6d8d72ab38700b91cf18920d72fc4 (patch) | |
tree | 556d998e72ce71fb97bf89a65edaa0bb394964ae /src/components/settings/recipes | |
parent | Iterate on About Ferdi screen (diff) | |
download | ferdium-app-4b909b13fbb6d8d72ab38700b91cf18920d72fc4.tar.gz ferdium-app-4b909b13fbb6d8d72ab38700b91cf18920d72fc4.tar.zst ferdium-app-4b909b13fbb6d8d72ab38700b91cf18920d72fc4.zip |
Hotfix for requireAuthenticatedUser error
Diffstat (limited to 'src/components/settings/recipes')
-rw-r--r-- | src/components/settings/recipes/RecipesDashboard.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/components/settings/recipes/RecipesDashboard.js b/src/components/settings/recipes/RecipesDashboard.js index 0ba295369..4f19a6116 100644 --- a/src/components/settings/recipes/RecipesDashboard.js +++ b/src/components/settings/recipes/RecipesDashboard.js | |||
@@ -148,8 +148,6 @@ class RecipesDashboard extends Component { | |||
148 | const communityRecipes = recipes.filter(r => !r.isDevRecipe); | 148 | const communityRecipes = recipes.filter(r => !r.isDevRecipe); |
149 | const devRecipes = recipes.filter(r => r.isDevRecipe); | 149 | const devRecipes = recipes.filter(r => r.isDevRecipe); |
150 | 150 | ||
151 | const isLoggedIn = Boolean(localStorage.getItem('authToken')); | ||
152 | |||
153 | return ( | 151 | return ( |
154 | <div className="settings__main"> | 152 | <div className="settings__main"> |
155 | <div className="settings__header"> | 153 | <div className="settings__header"> |
@@ -240,7 +238,6 @@ class RecipesDashboard extends Component { | |||
240 | key={recipe.id} | 238 | key={recipe.id} |
241 | recipe={recipe} | 239 | recipe={recipe} |
242 | onClick={() => | 240 | onClick={() => |
243 | isLoggedIn && | ||
244 | showAddServiceInterface({ recipeId: recipe.id }) | 241 | showAddServiceInterface({ recipeId: recipe.id }) |
245 | } | 242 | } |
246 | /> | 243 | /> |
@@ -253,7 +250,6 @@ class RecipesDashboard extends Component { | |||
253 | key={customWebsiteRecipe.id} | 250 | key={customWebsiteRecipe.id} |
254 | recipe={customWebsiteRecipe} | 251 | recipe={customWebsiteRecipe} |
255 | onClick={() => | 252 | onClick={() => |
256 | isLoggedIn && | ||
257 | showAddServiceInterface({ | 253 | showAddServiceInterface({ |
258 | recipeId: customWebsiteRecipe.id, | 254 | recipeId: customWebsiteRecipe.id, |
259 | }) | 255 | }) |
@@ -274,7 +270,6 @@ class RecipesDashboard extends Component { | |||
274 | key={recipe.id} | 270 | key={recipe.id} |
275 | recipe={recipe} | 271 | recipe={recipe} |
276 | onClick={() => | 272 | onClick={() => |
277 | isLoggedIn && | ||
278 | showAddServiceInterface({ recipeId: recipe.id }) | 273 | showAddServiceInterface({ recipeId: recipe.id }) |
279 | } | 274 | } |
280 | /> | 275 | /> |