From efb5508a8dea1c93965ba0e78856d2923b4b1cec Mon Sep 17 00:00:00 2001 From: ajdj100 Date: Tue, 30 Dec 2025 14:24:25 -0500 Subject: [PATCH] fixed server error when trying to view nonexistend application --- api/src/routes/applications.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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);