mirror of https://github.com/status-im/js-waku.git
Use timestamp in millisecond
It was implicitly using `toString` which return the timestamp in readable format with a precision in seconds which meant messages sent within the same second had the same key.
This commit is contained in:
parent
35cfd5679e
commit
27a90d8204
|
@ -78,7 +78,7 @@ function App() {
|
|||
<ul>
|
||||
{messages.map((msg) => {
|
||||
return (
|
||||
<li key={msg.timestamp}>
|
||||
<li key={msg.timestamp.valueOf()}>
|
||||
<p>
|
||||
{msg.timestamp.toString()}: {msg.text}
|
||||
</p>
|
||||
|
|
Loading…
Reference in New Issue