Skip to content

Commit

Permalink
fix: spacing issue breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
varshamenon4 committed Nov 22, 2024
1 parent baa26ef commit 1b16b12
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/ChatBox/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ const ChatBox = ({ chatboxContainerRef }) => {
{messagesBeforeToday.map(({ role, content, timestamp }) => (
<Message key={timestamp} variant={role} message={content} />
))}
{(messageList.length !== 0 && messagesBeforeToday.length !== 0) && (
<MessageDivider text="Today" />
)}
{(messageList.length !== 0 && messagesBeforeToday.length !== 0) && (<MessageDivider text="Today" />)}
{messagesToday.map(({ role, content, timestamp }) => (
<Message key={timestamp} variant={role} message={content} />
))}
Expand Down

0 comments on commit 1b16b12

Please sign in to comment.