We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 219dff2 commit 32d7555Copy full SHA for 32d7555
1 file changed
src/components/Chat.tsx
@@ -37,7 +37,7 @@ export function Chat() {
37
const initialMessage = useMemo<Message>(
38
() => ({
39
id: generateMessageId(),
40
- content: `Hello ${user?.name?.split(' ')[0] || ''}! I'm your AI assistant. How can I help you today?`,
+ content: `Hello ${user?.name?.split(' ')[0] ?? 'there'}! I'm your AI assistant. How can I help you today?`,
41
role: 'assistant',
42
}),
43
[user?.name],
0 commit comments