diff options
author | 2019-09-17 11:24:31 +0200 | |
---|---|---|
committer | 2019-09-17 11:24:31 +0200 | |
commit | 40350431927e12b74874ebf17b761535cccc76c5 (patch) | |
tree | d977676505a90c0d64c46c1e5f39c9edfee5560a | |
parent | Don't show menu-separator when feature is enabled (diff) | |
download | ferdium-app-40350431927e12b74874ebf17b761535cccc76c5.tar.gz ferdium-app-40350431927e12b74874ebf17b761535cccc76c5.tar.zst ferdium-app-40350431927e12b74874ebf17b761535cccc76c5.zip |
fix(Spellchecker): Fix disabling spellchecker after app start
-rw-r--r-- | src/features/spellchecker/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
16 | 16 | ||
17 | config.isIncludedInCurrentPlan = isSpellcheckerIncludedInCurrentPlan !== undefined ? isSpellcheckerIncludedInCurrentPlan : DEFAULT_FEATURES_CONFIG.isSpellcheckerIncludedInCurrentPlan; | 17 | config.isIncludedInCurrentPlan = isSpellcheckerIncludedInCurrentPlan !== undefined ? isSpellcheckerIncludedInCurrentPlan : DEFAULT_FEATURES_CONFIG.isSpellcheckerIncludedInCurrentPlan; |
18 | 18 | ||
19 | if (!stores.user.data.isPremium && config.isIncludedInCurrentPlan && stores.settings.app.enableSpellchecking) { | 19 | if (!stores.user.data.isPremium && !config.isIncludedInCurrentPlan && stores.settings.app.enableSpellchecking) { |
20 | debug('Override settings.spellcheckerEnabled flag to false'); | 20 | debug('Override settings.spellcheckerEnabled flag to false'); |
21 | 21 | ||
22 | Object.assign(stores.settings.app, { | 22 | Object.assign(stores.settings.app, { |