From 21c44a4d429469942d23c0a7da7bde2465e77194 Mon Sep 17 00:00:00 2001 From: Jaanus Sellin Date: Wed, 6 Nov 2024 15:21:42 +0200 Subject: [PATCH] fix: dashboard onboarding flow correct conditions (#8676) Previously it never went to else clause. Because it was always onboardingStarted. --- frontend/src/component/personalDashboard/MyProjects.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/component/personalDashboard/MyProjects.tsx b/frontend/src/component/personalDashboard/MyProjects.tsx index 402e12e1ac..7f71f5b115 100644 --- a/frontend/src/component/personalDashboard/MyProjects.tsx +++ b/frontend/src/component/personalDashboard/MyProjects.tsx @@ -194,9 +194,8 @@ export const MyProjects: React.FC<{ const activeProjectStage = personalDashboardProjectDetails.data.onboardingStatus .status ?? 'loading'; - const setupIncomplete = - activeProjectStage === 'onboarding-started' || - activeProjectStage === 'first-flag-created'; + const onboardingStarted = + activeProjectStage === 'onboarding-started'; if (activeProjectStage === 'onboarded') { return [ @@ -214,7 +213,7 @@ export const MyProjects: React.FC<{ } />, ]; - } else if (setupIncomplete) { + } else if (onboardingStarted) { return [ , ,