aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/workspaces/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/workspaces/index.js')
-rw-r--r--src/features/workspaces/index.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/features/workspaces/index.js b/src/features/workspaces/index.js
index 524a83e3c..fb5135743 100644
--- a/src/features/workspaces/index.js
+++ b/src/features/workspaces/index.js
@@ -10,15 +10,11 @@ export const workspaceStore = new WorkspacesStore();
10 10
11export default function initWorkspaces(stores, actions) { 11export default function initWorkspaces(stores, actions) {
12 stores.workspaces = workspaceStore; 12 stores.workspaces = workspaceStore;
13 const { features, user } = stores; 13 const { features } = stores;
14 14
15 // Toggle workspace feature 15 // Toggle workspace feature
16 reaction( 16 reaction(
17 () => ( 17 () => features.features.isWorkspaceEnabled,
18 features.features.isWorkspaceEnabled && (
19 !features.features.isWorkspacePremiumFeature || user.data.isPremium
20 )
21 ),
22 (isEnabled) => { 18 (isEnabled) => {
23 if (isEnabled && !workspaceStore.isFeatureActive) { 19 if (isEnabled && !workspaceStore.isFeatureActive) {
24 debug('Initializing `workspaces` feature'); 20 debug('Initializing `workspaces` feature');