From 48b9e0530383b8523ccc5c66b63ec25584d77f14 Mon Sep 17 00:00:00 2001 From: Rebecca Alpert Date: Fri, 13 Dec 2024 09:50:41 -0500 Subject: [PATCH] Update header selection --- src/app/HeaderDropdown/HeaderDropdown.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/HeaderDropdown/HeaderDropdown.tsx b/src/app/HeaderDropdown/HeaderDropdown.tsx index 4ba3ed6..07fc24a 100644 --- a/src/app/HeaderDropdown/HeaderDropdown.tsx +++ b/src/app/HeaderDropdown/HeaderDropdown.tsx @@ -54,6 +54,7 @@ export const HeaderDropdown: React.FunctionComponent = ({ } }; + const selectedChatbotName = selectedChatbot?.displayName ?? selectedChatbot?.name; return ( = ({ toggle={(toggleRef: React.Ref) => { return ( - Red Hat AI Assistant + {selectedChatbotName ?? 'Red Hat AI Assistant'} ); }}