fix tour / whats new collision
Some checks failed
Deploy to Test Environment / deploy-to-test (push) Has been cancelled
Some checks failed
Deploy to Test Environment / deploy-to-test (push) Has been cancelled
This commit is contained in:
@@ -46,8 +46,17 @@ export const useAppInitialization = () => {
|
||||
const lastSeenVersion = localStorage.getItem('lastSeenVersion');
|
||||
const onboardingCompleted = localStorage.getItem('flyer_crawler_onboarding_completed');
|
||||
|
||||
logger.info("What's New check:", {
|
||||
appVersion,
|
||||
lastSeenVersion,
|
||||
onboardingCompleted,
|
||||
versionMismatch: appVersion !== lastSeenVersion,
|
||||
shouldShow: appVersion !== lastSeenVersion && onboardingCompleted === 'true',
|
||||
});
|
||||
|
||||
// Only show "What's New" if onboarding tour has been completed
|
||||
if (appVersion !== lastSeenVersion && onboardingCompleted === 'true') {
|
||||
logger.info("Opening What's New modal");
|
||||
openModal('whatsNew');
|
||||
localStorage.setItem('lastSeenVersion', appVersion);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user