diff --git a/api/src/routes/applications.ts b/api/src/routes/applications.ts index 5a98f07..9a1a732 100644 --- a/api/src/routes/applications.ts +++ b/api/src/routes/applications.ts @@ -79,9 +79,11 @@ router.get('/me', [requireLogin], async (req, res) => { try { let application = await getMemberApplication(userID); - - if (application === undefined) + + if (application === undefined) { res.sendStatus(204); + return; + } const comments: CommentRow[] = await getApplicationComments(application.id);