diff options
Diffstat (limited to 'src/features/spellchecker')
-rw-r--r-- | src/features/spellchecker/index.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/features/spellchecker/index.js b/src/features/spellchecker/index.js index 9bffc1949..454096e4e 100644 --- a/src/features/spellchecker/index.js +++ b/src/features/spellchecker/index.js | |||
@@ -1,11 +1,11 @@ | |||
1 | import { autorun, reaction } from 'mobx'; | 1 | import { autorun, reaction } from 'mobx'; |
2 | 2 | ||
3 | const debug = require('debug')('Franz:feature:spellchecker'); | 3 | import { DEFAULT_FEATURES_CONFIG } from '../../config'; |
4 | 4 | ||
5 | const DEFAULT_IS_PREMIUM_FEATURE = true; | 5 | const debug = require('debug')('Franz:feature:spellchecker'); |
6 | 6 | ||
7 | export const config = { | 7 | export const config = { |
8 | isPremiumFeature: DEFAULT_IS_PREMIUM_FEATURE, | 8 | isPremiumFeature: DEFAULT_FEATURES_CONFIG.isSpellcheckerPremiumFeature, |
9 | }; | 9 | }; |
10 | 10 | ||
11 | export default function init(stores) { | 11 | export default function init(stores) { |
@@ -19,7 +19,7 @@ export default function init(stores) { | |||
19 | 19 | ||
20 | const { isSpellcheckerPremiumFeature } = stores.features.features; | 20 | const { isSpellcheckerPremiumFeature } = stores.features.features; |
21 | 21 | ||
22 | config.isPremiumFeature = isSpellcheckerPremiumFeature !== undefined ? isSpellcheckerPremiumFeature : DEFAULT_IS_PREMIUM_FEATURE; | 22 | config.isPremiumFeature = isSpellcheckerPremiumFeature !== undefined ? isSpellcheckerPremiumFeature : DEFAULT_FEATURES_CONFIG.isSpellcheckerPremiumFeature; |
23 | 23 | ||
24 | autorun(() => { | 24 | autorun(() => { |
25 | if (!stores.user.data.isPremium && config.isPremiumFeature) { | 25 | if (!stores.user.data.isPremium && config.isPremiumFeature) { |