Skip to content

Commit

Permalink
fix: dashboard onboarding flow correct conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus committed Nov 6, 2024
1 parent 7c28d24 commit 7cf70b4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions frontend/src/component/personalDashboard/MyProjects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand All @@ -214,7 +213,7 @@ export const MyProjects: React.FC<{
}
/>,
];
} else if (setupIncomplete) {
} else if (onboardingStarted) {
return [
<CreateFlag project={activeProject} />,
<ConnectSDK project={activeProject} />,
Expand Down

0 comments on commit 7cf70b4

Please sign in to comment.