aboutsummaryrefslogtreecommitdiffstats
path: root/src/features
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-09-17 11:24:31 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-09-17 11:24:31 +0200
commit40350431927e12b74874ebf17b761535cccc76c5 (patch)
treed977676505a90c0d64c46c1e5f39c9edfee5560a /src/features
parentDon't show menu-separator when feature is enabled (diff)
downloadferdium-app-40350431927e12b74874ebf17b761535cccc76c5.tar.gz
ferdium-app-40350431927e12b74874ebf17b761535cccc76c5.tar.zst
ferdium-app-40350431927e12b74874ebf17b761535cccc76c5.zip
fix(Spellchecker): Fix disabling spellchecker after app start
Diffstat (limited to 'src/features')
-rw-r--r--src/features/spellchecker/index.js2
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, {