diff --git a/frontend/src/components/chat/WelcomeScreen.tsx b/frontend/src/components/chat/WelcomeScreen.tsx
index 8238aae377..77d887a8ef 100644
--- a/frontend/src/components/chat/WelcomeScreen.tsx
+++ b/frontend/src/components/chat/WelcomeScreen.tsx
@@ -49,29 +49,38 @@ export default function WelcomeScreen(props: Props) {
const currentChatProfile = chatProfiles.find(
(cp) => cp.name === chatProfile
);
- if (currentChatProfile?.icon) {
- return (
-
+ if (!currentChatProfile) {
+ return
;
+ }
+
+ const profileIcon = currentChatProfile.icon
+ ? currentChatProfile.icon.startsWith('/public')
+ ? apiClient.buildEndpoint(currentChatProfile.icon)
+ : currentChatProfile.icon
+ : null;
+
+ return (
+
+ {profileIcon ? (

- {currentChatProfile?.markdown_description ? (
-
- {currentChatProfile.markdown_description}
-
- ) : null}
-
- );
- }
+ ) : (
+
+ )}
+ {currentChatProfile?.markdown_description ? (
+
+ {currentChatProfile.markdown_description}
+
+ ) : null}
+
+ );
}
return ;