Skip to content

Commit

Permalink
fix(Spellchecker): Fix disabling spellchecker after app start
Browse files Browse the repository at this point in the history
  • Loading branch information
adlk committed Sep 17, 2019
1 parent e4ec5d4 commit 4035043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/spellchecker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit 4035043

Please sign in to comment.