From 544ee18aa7ea80c5b974a18eb6914e3f7f66cede Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Fri, 28 Jun 2019 15:18:46 +0200 Subject: Fix delay app logic --- src/features/delayApp/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/features/delayApp') diff --git a/src/features/delayApp/index.js b/src/features/delayApp/index.js index 67f0fc5e6..39fae3b20 100644 --- a/src/features/delayApp/index.js +++ b/src/features/delayApp/index.js @@ -33,7 +33,7 @@ export default function init(stores) { }; reaction( - () => stores.user.isLoggedIn && stores.features.features.needToWaitToProceed && !stores.user.data.isPremium, + () => stores.user.isLoggedIn && stores.services.allServicesRequest.wasExecuted && stores.features.features.needToWaitToProceed && !stores.user.data.isPremium, (isEnabled) => { if (isEnabled) { debug('Enabling `delayApp` feature'); @@ -45,6 +45,7 @@ export default function init(stores) { autorun(() => { if (stores.services.all.length === 0) { + debug('seas', stores.services.all.length); shownAfterLaunch = true; return; } @@ -64,7 +65,7 @@ export default function init(stores) { debug('Resetting app delay'); setVisibility(false); - }, DEFAULT_FEATURES_CONFIG.needToWaitToProceedConfig.wait + 1000); // timer needs to be able to hit 0 + }, config.delayDuration + 1000); // timer needs to be able to hit 0 } }); } else { -- cgit v1.2.3-54-g00ecf