diff --git a/app/notes/[noteId].tsx b/app/notes/[noteId].tsx index 8a98897..de63016 100644 --- a/app/notes/[noteId].tsx +++ b/app/notes/[noteId].tsx @@ -74,11 +74,25 @@ export default function Note() { ); } + if (!note) { + return ( + + Access Denied + + You do not have permission to access this note + + + Back to notes + + + ); + } + return ( - {note?.title} - {note?.textContent} + {note.title} + {note.textContent} );