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) => (
|
const renderedMessages = props.messages.map((message) => (
|
||||||
<LiveMessage
|
<LiveMessage
|
||||||
key={
|
key={
|
||||||
message.sentTimestamp
|
message.nick +
|
||||||
? message.sentTimestamp.valueOf()
|
message.payloadAsUtf8 +
|
||||||
: "" +
|
message.timestamp.valueOf() +
|
||||||
message.timestamp.valueOf() +
|
message.sentTimestamp?.valueOf()
|
||||||
message.nick +
|
|
||||||
message.payloadAsUtf8
|
|
||||||
}
|
}
|
||||||
authorName={message.nick}
|
authorName={message.nick}
|
||||||
date={formatDisplayDate(message)}
|
date={formatDisplayDate(message)}
|
||||||
|
|
Loading…
Reference in New Issue