Skip to content

Commit 468fa82

Browse files
priscilawebdevcmanallen
authored andcommitted
ref(quick-start): Update 'project to set up' logic to default to the first project (#78460)
1 parent 934a59c commit 468fa82

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: static/app/components/onboardingWizard/onboardingProjectsCard.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,12 @@ export default function OnboardingProjectsCard({
2626
});
2727
};
2828

29-
// TODO(Priscila): Reflect on this logic
3029
const selectedProjectSlug = onboardingContext.data.selectedSDK?.key;
3130

3231
const project = selectedProjectSlug
3332
? allProjects.find(p => p.slug === selectedProjectSlug)
34-
: undefined;
33+
: allProjects[0];
3534

36-
// Project selected during onboarding but not received first event
3735
const projectHasFirstEvent = !project?.firstEvent;
3836

3937
if (!project || !projectHasFirstEvent) {

0 commit comments

Comments
 (0)