aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/spellchecker
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/spellchecker')
-rw-r--r--src/features/spellchecker/index.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/features/spellchecker/index.js b/src/features/spellchecker/index.js
index 9336f4074..8b3fb7e00 100644
--- a/src/features/spellchecker/index.js
+++ b/src/features/spellchecker/index.js
@@ -20,10 +20,9 @@ export default function init(stores) {
20 20
21 const { isSpellcheckerPremiumFeature } = stores.features.features; 21 const { isSpellcheckerPremiumFeature } = stores.features.features;
22 22
23 config.isPremiumFeature = isSpellcheckerPremiumFeature || DEFAULT_IS_PREMIUM_FEATURE; 23 config.isPremiumFeature = isSpellcheckerPremiumFeature !== undefined ? isSpellcheckerPremiumFeature : DEFAULT_IS_PREMIUM_FEATURE;
24 24
25 autorun(() => { 25 autorun(() => {
26 console.log('FEATURE spellchecker autorun', stores.user.data.isPremium, config.isPremiumFeature);
27 if (!stores.user.data.isPremium && config.isPremiumFeature) { 26 if (!stores.user.data.isPremium && config.isPremiumFeature) {
28 debug('Override settings.spellcheckerEnabled flag to false'); 27 debug('Override settings.spellcheckerEnabled flag to false');
29 28