File tree Expand file tree Collapse file tree
apps/web/src/components/chat Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -140,7 +140,6 @@ export function DraftHeroHeadline({
140140 ) ,
141141 ) ?? null ) ;
142142 const activeProjectKey = activeProjectGroup ?. projectKey ?? "" ;
143- const activeProjectDisplayName = activeProjectGroup ?. displayName ?? activeProjectTitle ;
144143 const hasResolvedProject = activeProjectTitle !== null ;
145144 const canChooseProject = projectPickerEntries . length > 0 ;
146145 const shouldShowProjectMenu = canChooseProject ;
@@ -302,12 +301,12 @@ export function DraftHeroHeadline({
302301 }
303302 >
304303 < DraftProjectName
305- value = { isScratchDraft ? "No project" : ( activeProjectDisplayName ?? "Choose a project" ) }
304+ value = { isScratchDraft ? "No project" : ( activeProjectTitle ?? "Choose a project" ) }
306305 singleLine
307306 />
308307 </ TooltipTrigger >
309- { activeProjectDisplayName && ! isScratchDraft ? (
310- < TooltipPopup side = "top" > { activeProjectDisplayName } </ TooltipPopup >
308+ { activeProjectTitle && ! isScratchDraft ? (
309+ < TooltipPopup side = "top" > { activeProjectTitle } </ TooltipPopup >
311310 ) : null }
312311 </ Tooltip >
313312 < ComboboxPopup align = "center" className = "w-72 overflow-hidden" >
@@ -415,7 +414,7 @@ export function DraftHeroHeadline({
415414 return (
416415 < div className = "mx-auto flex w-full max-w-5xl flex-col items-center" >
417416 { hasResolvedProject && ! isScratchDraft ? (
418- < DraftHeroProjectHeading projectName = { activeProjectDisplayName ?? "Choose a project" } >
417+ < DraftHeroProjectHeading projectName = { activeProjectTitle ?? "Choose a project" } >
419418 { projectSelector }
420419 </ DraftHeroProjectHeading >
421420 ) : (
You can’t perform that action at this time.
0 commit comments