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:
parent
c70c023143
commit
21c44a4d42
@ -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} />,
|
||||
|
Loading…
Reference in New Issue
Block a user