Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
iipanda committed Oct 26, 2024
1 parent ee961ac commit d08abbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/www/content/docs/components/chat.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,14 @@ export function CustomChat() {

return (
<ChatContainer>
{isEmpty && append ? (
{isEmpty ? (
<PromptSuggestions
append={append}
suggestions={["What is the capital of France?", "Tell me a joke"]}
/>
) : null}

{messages.length > 0 ? (
{!isEmpty ? (
<ChatMessages>
<MessageList messages={messages} isTyping={isTyping} />
</ChatMessages>
Expand Down

0 comments on commit d08abbd

Please sign in to comment.