From fb5a063276f18e3238b13577358e811aa5f9ee31 Mon Sep 17 00:00:00 2001
From: Silas Bartha <silas@exvacuum.dev>
Date: Tue, 11 Feb 2025 19:28:40 -0500
Subject: functionality implemented

---
 src/components/notes.jsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/components/notes.jsx')

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}/>;
+        })}
     </>);
 }
-- 
cgit v1.2.3

