Skip to content

Commit 55ea36b

Browse files
committed
Fix listening key
1 parent 0d9c7ff commit 55ea36b

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

src/features/spellchecker/index.js

+2-17
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const config = {
1010

1111
export default function init(stores) {
1212
reaction(
13-
() => stores.features.features.needToWaitToProceed,
13+
() => stores.features.features.isSpellcheckerPremiumFeature,
1414
(enabled, r) => {
1515
if (enabled) {
1616
debug('Initializing `spellchecker` feature');
@@ -22,23 +22,8 @@ export default function init(stores) {
2222

2323
config.isPremiumFeature = isSpellcheckerPremiumFeature || DEFAULT_IS_PREMIUM_FEATURE;
2424

25-
// reaction(
26-
// () => stores.settings.all.app.enableSpellchecking,
27-
// (enabled, r) => {
28-
// if (enabled) {
29-
// // debug('Initializing `spellchecker` feature');
30-
31-
// // // Dispose the reaction to run this only once
32-
// // r.dispose();
33-
34-
// // const { isSpellcheckerPremiumFeature } = stores.features.features;
35-
36-
// // config.isPremiumFeature = isSpellcheckerPremiumFeature || DEFAULT_IS_PREMIUM_FEATURE;
37-
// }
38-
// },
39-
// );
40-
4125
autorun(() => {
26+
console.log('FEATURE spellchecker autorun', stores.user.data.isPremium, config.isPremiumFeature);
4227
if (!stores.user.data.isPremium && config.isPremiumFeature) {
4328
debug('Override settings.spellcheckerEnabled flag to false');
4429

0 commit comments

Comments
 (0)