aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/shareFranz/index.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-10-15 21:40:14 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-10-15 21:40:14 +0200
commit91a0fb20ef02dfa342cf26df3e047b2bd4370b9f (patch)
treef411b3d7d83a24b015a2a1ed723df2e2a324cc0c /src/features/shareFranz/index.js
parentOptimize button width (diff)
downloadferdium-app-91a0fb20ef02dfa342cf26df3e047b2bd4370b9f.tar.gz
ferdium-app-91a0fb20ef02dfa342cf26df3e047b2bd4370b9f.tar.zst
ferdium-app-91a0fb20ef02dfa342cf26df3e047b2bd4370b9f.zip
simplify plan selection
Diffstat (limited to 'src/features/shareFranz/index.js')
-rw-r--r--src/features/shareFranz/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/features/shareFranz/index.js b/src/features/shareFranz/index.js
index 87deacef4..a39d7a6e6 100644
--- a/src/features/shareFranz/index.js
+++ b/src/features/shareFranz/index.js
@@ -3,6 +3,7 @@ import ms from 'ms';
3 3
4import { state as delayAppState } from '../delayApp'; 4import { state as delayAppState } from '../delayApp';
5import { gaEvent, gaPage } from '../../lib/analytics'; 5import { gaEvent, gaPage } from '../../lib/analytics';
6import { planSelectionStore } from '../planSelection';
6 7
7export { default as Component } from './Component'; 8export { default as Component } from './Component';
8 9
@@ -35,7 +36,7 @@ export default function initialize(stores) {
35 () => stores.user.isLoggedIn, 36 () => stores.user.isLoggedIn,
36 () => { 37 () => {
37 setTimeout(() => { 38 setTimeout(() => {
38 if (stores.settings.stats.appStarts % 50 === 0) { 39 if (stores.settings.stats.appStarts % 50 === 0 && !planSelectionStore.showPlanSelectionOverlay) {
39 if (delayAppState.isDelayAppScreenVisible) { 40 if (delayAppState.isDelayAppScreenVisible) {
40 debug('Delaying share modal by 5 minutes'); 41 debug('Delaying share modal by 5 minutes');
41 setTimeout(() => showModal(), ms('5m')); 42 setTimeout(() => showModal(), ms('5m'));