diff options
author | 2025-02-11 19:28:40 -0500 | |
---|---|---|
committer | 2025-02-11 19:28:40 -0500 | |
commit | fb5a063276f18e3238b13577358e811aa5f9ee31 (patch) | |
tree | 22d5968ff372649b076f9253a764d61f6ed77323 /src/components/notes.jsx | |
parent | 89b411863b452fdab9d2b4a0cfd0e9d79d991f72 (diff) |
functionality implemented
Diffstat (limited to 'src/components/notes.jsx')
-rw-r--r-- | src/components/notes.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/notes.jsx b/src/components/notes.jsx index 027cd10..5f57b7f 100644 --- a/src/components/notes.jsx +++ b/src/components/notes.jsx @@ -5,8 +5,8 @@ import { AppContext } from "../App"; export default function Notes() { const { messages } = useContext(AppContext); return (<> - {messages.map((chatbubble, index) => - <ChatBubble key={index} position={chatbubble.position} text={chatbubble.message}/> - )} + {messages.map((chatbubble) => { + return <ChatBubble key={chatbubble._id.$oid} id={chatbubble._id.$oid} position={chatbubble.position} text={chatbubble.message}/>; + })} </>); } |