fix(react): invalid jsx

This commit is contained in:
Pavel Prichodko 2022-06-22 14:49:53 +02:00
parent f26d429a9d
commit fc2d2e54c3
No known key found for this signature in database
GPG Key ID: 8E4C82D464215E83
1 changed files with 5 additions and 6 deletions

View File

@ -59,13 +59,12 @@ const Body = () => {
<>
<ContentWrapper ref={contentRef}>
<ChatStart chatId={chatId} />
{messages.data.map((message, index) => (
<ChatMessage
key={message.messageId}
message={message}
previousMessage={messages.data[index - 1]}
/>
{messages.data.map(message => (
<ChatMessage key={message.messageId} message={message} />
))}
</ContentWrapper>
<ChatInput onSubmit={handleMessageSubmit} />
</>
)
}