mirror of https://github.com/waku-org/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>
|
<ul>
|
||||||
{messages.map((msg) => {
|
{messages.map((msg) => {
|
||||||
return (
|
return (
|
||||||
<li key={msg.timestamp}>
|
<li key={msg.timestamp.valueOf()}>
|
||||||
<p>
|
<p>
|
||||||
{msg.timestamp.toString()}: {msg.text}
|
{msg.timestamp.toString()}: {msg.text}
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Reference in New Issue