diff --git a/portal/src/OnboardingRedirect.tsx b/portal/src/OnboardingRedirect.tsx index 7ac53003d6..d9747bd420 100644 --- a/portal/src/OnboardingRedirect.tsx +++ b/portal/src/OnboardingRedirect.tsx @@ -30,11 +30,17 @@ const OnboardingRedirect: React.VFC = function OnboardingRedirect() { if (viewer === undefined || viewer === null) { return; } - if ( - (apps === null || apps.length === 0) && - !viewer.isOnboardingSurveyCompleted - ) { - navigate("/onboarding-survey"); + // NOTE(onboarding-survey): disabled + //if ( + // (apps === null || apps.length === 0) && + // !viewer.isOnboardingSurveyCompleted + //) { + // navigate("/onboarding-survey"); + //} else { + // navigate("/"); + //} + if (apps === null || apps.length === 0) { + navigate("/projects/create"); } else { navigate("/"); } diff --git a/portal/src/graphql/portal/AppsScreen.tsx b/portal/src/graphql/portal/AppsScreen.tsx index 197942f2f0..6d3403caf8 100644 --- a/portal/src/graphql/portal/AppsScreen.tsx +++ b/portal/src/graphql/portal/AppsScreen.tsx @@ -1,4 +1,4 @@ -import React, { useCallback, useMemo, useEffect } from "react"; +import React, { useCallback, useMemo } from "react"; import { Link, useNavigate } from "react-router-dom"; import { FormattedMessage } from "@oursky/react-messageformat"; import { DefaultEffects, Text } from "@fluentui/react"; @@ -92,14 +92,15 @@ const AppList: React.VFC = function AppList(props: AppListProps) { const projectQuotaReached = isProjectQuotaReached(viewer); const navigate = useNavigate(); - useEffect(() => { - if ( - (apps === null || apps.length === 0) && - !viewer?.isOnboardingSurveyCompleted - ) { - navigate("/onboarding-survey"); - } - }, [apps, viewer, navigate]); + // NOTE(onboarding-survey): disabled + //useEffect(() => { + // if ( + // (apps === null || apps.length === 0) && + // !viewer?.isOnboardingSurveyCompleted + // ) { + // navigate("/onboarding-survey"); + // } + //}, [apps, viewer, navigate]); const onCreateClick = useCallback( (e) => {