Skip to content

Commit

Permalink
Update function usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Eprince-hub committed Nov 4, 2024
1 parent f45f3a0 commit bcca6eb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/notes/[noteId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ export default async function NotePage({ params }: Props) {
const sessionTokenCookie = await getCookie('sessionToken');

// 2. Check if the note exists
const noteExists = await selectNoteExists(noteId);

if (!noteExists) {
if (!(await selectNoteExists(noteId))) {
return (
<div>
<h1>Error loading note {noteId}</h1>
Expand Down

0 comments on commit bcca6eb

Please sign in to comment.