fix: unique key in message list
This commit is contained in:
parent
491062154b
commit
e4c001d901
|
@ -16,12 +16,10 @@ export default function ChatList(props: Props) {
|
|||
const renderedMessages = props.messages.map((message) => (
|
||||
<LiveMessage
|
||||
key={
|
||||
message.sentTimestamp
|
||||
? message.sentTimestamp.valueOf()
|
||||
: "" +
|
||||
message.timestamp.valueOf() +
|
||||
message.nick +
|
||||
message.payloadAsUtf8
|
||||
message.payloadAsUtf8 +
|
||||
message.timestamp.valueOf() +
|
||||
message.sentTimestamp?.valueOf()
|
||||
}
|
||||
authorName={message.nick}
|
||||
date={formatDisplayDate(message)}
|
||||
|
|
Loading…
Reference in New Issue