fix: Don't wait for onboarding data in demo mode, prevents infinite loading
This commit is contained in:
@@ -283,8 +283,10 @@ const InitialRouteHandler: React.FC = () => {
|
|||||||
|
|
||||||
// Loading state - only wait for onboarding init, not subscription check
|
// Loading state - only wait for onboarding init, not subscription check
|
||||||
// Subscription check is non-blocking and happens in background
|
// Subscription check is non-blocking and happens in background
|
||||||
const waitingForOnboardingInit = loading || !data;
|
// In demo mode, skip waiting for onboarding data
|
||||||
if (loading || waitingForOnboardingInit) {
|
const isDemoMode = shouldSkipOnboarding();
|
||||||
|
const waitingForOnboardingInit = !isDemoMode && (loading || !data);
|
||||||
|
if (!isDemoMode && (loading || waitingForOnboardingInit)) {
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
display="flex"
|
display="flex"
|
||||||
|
|||||||
Reference in New Issue
Block a user