From abc64e2dffe1baa5c77e6eb8238a9a756bc4549e Mon Sep 17 00:00:00 2001
From: Silas Bartha <silas@exvacuum.dev>
Date: Wed, 12 Feb 2025 11:24:07 -0500
Subject: messages null check

---
 src/components/notes.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

diff --git a/src/components/notes.jsx b/src/components/notes.jsx
index d1bc454..11f28af 100644
--- a/src/components/notes.jsx
+++ b/src/components/notes.jsx
@@ -5,7 +5,7 @@ import { AppContext } from "../App";
 export default function Notes() {
     const { messages } = useContext(AppContext);
     return (<>
-        {messages.map((chatbubble) =>  {
+        {messages && messages.map((chatbubble) =>  {
             return <ChatBubble key={chatbubble.message_id} id={chatbubble.message_id} position={chatbubble.position} text={chatbubble.message}/>;
         })}
     </>);
-- 
cgit v1.2.3

