Skip to content

Commit aa170d4

Browse files
committed
fix(onboarding): id badge fix #2
1 parent 2ccae38 commit aa170d4

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

static/app/components/profiling/ProfilingOnboarding/proflingOnboardingSidebar.tsx

+10-6
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,16 @@ export function ProfilingOnboardingSidebar(props: CommonSidebarProps) {
139139
>
140140
<CompactSelect
141141
triggerLabel={
142-
<StyledIdBadge
143-
project={currentProject}
144-
avatarSize={16}
145-
hideOverflow
146-
disableLink
147-
/>
142+
currentProject ? (
143+
<StyledIdBadge
144+
project={currentProject}
145+
avatarSize={16}
146+
hideOverflow
147+
disableLink
148+
/>
149+
) : (
150+
t('Select a project')
151+
)
148152
}
149153
onChange={option => setCurrentProject(option.value)}
150154
triggerProps={{'aria-label': currentProject?.slug}}

0 commit comments

Comments
 (0)