aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/delayApp/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/delayApp/index.js')
-rw-r--r--src/features/delayApp/index.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/features/delayApp/index.js b/src/features/delayApp/index.js
index bd0395376..5b28fb7c8 100644
--- a/src/features/delayApp/index.js
+++ b/src/features/delayApp/index.js
@@ -4,6 +4,7 @@ import DelayAppComponent from './Component';
4 4
5import { DEFAULT_FEATURES_CONFIG } from '../../config'; 5import { DEFAULT_FEATURES_CONFIG } from '../../config';
6import { gaEvent, gaPage } from '../../lib/analytics'; 6import { gaEvent, gaPage } from '../../lib/analytics';
7import { getUserWorkspacesRequest } from '../workspaces/api';
7 8
8const debug = require('debug')('Franz:feature:delayApp'); 9const debug = require('debug')('Franz:feature:delayApp');
9 10
@@ -33,7 +34,13 @@ export default function init(stores) {
33 }; 34 };
34 35
35 reaction( 36 reaction(
36 () => stores.user.isLoggedIn && stores.services.allServicesRequest.wasExecuted && stores.features.features.needToWaitToProceed && !stores.user.data.isPremium, 37 () => (
38 stores.user.isLoggedIn
39 && stores.services.allServicesRequest.wasExecuted
40 && getUserWorkspacesRequest.wasExecuted
41 && stores.features.features.needToWaitToProceed
42 && !stores.user.data.isPremium
43 ),
37 (isEnabled) => { 44 (isEnabled) => {
38 if (isEnabled) { 45 if (isEnabled) {
39 debug('Enabling `delayApp` feature'); 46 debug('Enabling `delayApp` feature');