1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: dashboard onboarding flow correct conditions (#8676)

Previously it never went to else clause. Because it was always
onboardingStarted.
This commit is contained in:
Jaanus Sellin 2024-11-06 15:21:42 +02:00 committed by GitHub
parent c70c023143
commit 21c44a4d42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 [
<CreateFlag project={activeProject} />,
<ConnectSDK project={activeProject} />,