From 40350431927e12b74874ebf17b761535cccc76c5 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Tue, 17 Sep 2019 11:24:31 +0200 Subject: fix(Spellchecker): Fix disabling spellchecker after app start --- src/features/spellchecker/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/features') diff --git a/src/features/spellchecker/index.js b/src/features/spellchecker/index.js index a07f9f63a..fd8bc738a 100644 --- a/src/features/spellchecker/index.js +++ b/src/features/spellchecker/index.js @@ -16,7 +16,7 @@ export default function init(stores) { config.isIncludedInCurrentPlan = isSpellcheckerIncludedInCurrentPlan !== undefined ? isSpellcheckerIncludedInCurrentPlan : DEFAULT_FEATURES_CONFIG.isSpellcheckerIncludedInCurrentPlan; - if (!stores.user.data.isPremium && config.isIncludedInCurrentPlan && stores.settings.app.enableSpellchecking) { + if (!stores.user.data.isPremium && !config.isIncludedInCurrentPlan && stores.settings.app.enableSpellchecking) { debug('Override settings.spellcheckerEnabled flag to false'); Object.assign(stores.settings.app, { -- cgit v1.2.3-70-g09d2