messages null check

This commit is contained in:
Silas Bartha 2025-02-12 11:24:07 -05:00
parent 280f1b7338
commit abc64e2dff
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -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}/>;
})}
</>);