mirror of
https://github.com/Unleash/unleash.git
synced 2025-05-08 01:15:49 +02: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 =
|
const activeProjectStage =
|
||||||
personalDashboardProjectDetails.data.onboardingStatus
|
personalDashboardProjectDetails.data.onboardingStatus
|
||||||
.status ?? 'loading';
|
.status ?? 'loading';
|
||||||
const setupIncomplete =
|
const onboardingStarted =
|
||||||
activeProjectStage === 'onboarding-started' ||
|
activeProjectStage === 'onboarding-started';
|
||||||
activeProjectStage === 'first-flag-created';
|
|
||||||
|
|
||||||
if (activeProjectStage === 'onboarded') {
|
if (activeProjectStage === 'onboarded') {
|
||||||
return [
|
return [
|
||||||
@ -214,7 +213,7 @@ export const MyProjects: React.FC<{
|
|||||||
}
|
}
|
||||||
/>,
|
/>,
|
||||||
];
|
];
|
||||||
} else if (setupIncomplete) {
|
} else if (onboardingStarted) {
|
||||||
return [
|
return [
|
||||||
<CreateFlag project={activeProject} />,
|
<CreateFlag project={activeProject} />,
|
||||||
<ConnectSDK project={activeProject} />,
|
<ConnectSDK project={activeProject} />,
|
||||||
|
Loading…
Reference in New Issue
Block a user