aboutsummaryrefslogtreecommitdiffstats
path: root/src/containers
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-07-02 12:08:13 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-07-02 12:08:13 +0530
commite0aebbd0b6544c264f6aad22a75ac3a1b1ecada4 (patch)
treef05aad5bf5695ff28b4e50f351780c2bfc887d2f /src/containers
parentBumped up version to be at par with nightly as of now [skip ci] (diff)
downloadferdium-app-e0aebbd0b6544c264f6aad22a75ac3a1b1ecada4.tar.gz
ferdium-app-e0aebbd0b6544c264f6aad22a75ac3a1b1ecada4.tar.zst
ferdium-app-e0aebbd0b6544c264f6aad22a75ac3a1b1ecada4.zip
Minor code cleanup: Use constant that's already defined (instead of a string literal).
Diffstat (limited to 'src/containers')
-rw-r--r--src/containers/settings/RecipesScreen.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/containers/settings/RecipesScreen.js b/src/containers/settings/RecipesScreen.js
index 72d551bc2..c69a70e2f 100644
--- a/src/containers/settings/RecipesScreen.js
+++ b/src/containers/settings/RecipesScreen.js
@@ -18,6 +18,7 @@ import { FRANZ_DEV_DOCS, RECIPES_PATH } from '../../config';
18import { communityRecipesStore } from '../../features/communityRecipes'; 18import { communityRecipesStore } from '../../features/communityRecipes';
19import RecipePreview from '../../models/RecipePreview'; 19import RecipePreview from '../../models/RecipePreview';
20import AppStore from '../../stores/AppStore'; 20import AppStore from '../../stores/AppStore';
21import CUSTOM_WEBSITE_ID from '../../features/webControls/constants';
21 22
22export default @inject('stores', 'actions') @observer class RecipesScreen extends Component { 23export default @inject('stores', 'actions') @observer class RecipesScreen extends Component {
23 static propTypes = { 24 static propTypes = {
@@ -138,7 +139,7 @@ export default @inject('stores', 'actions') @observer class RecipesScreen extend
138 ), 139 ),
139 ]) : recipeFilter; 140 ]) : recipeFilter;
140 141
141 const customWebsiteRecipe = recipePreviews.all.find(service => service.id === 'franz-custom-website'); 142 const customWebsiteRecipe = recipePreviews.all.find(service => service.id === CUSTOM_WEBSITE_ID);
142 143
143 const isLoading = recipePreviews.featuredRecipePreviewsRequest.isExecuting 144 const isLoading = recipePreviews.featuredRecipePreviewsRequest.isExecuting
144 || recipePreviews.allRecipePreviewsRequest.isExecuting 145 || recipePreviews.allRecipePreviewsRequest.isExecuting