Skip to content

Commit

Permalink
fix(application): 🚑 Undefined reviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
Nudelsuppe42 committed Aug 21, 2024
1 parent 2b4311f commit 105c445
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/ApplicationController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ class ApplicationController {
...application,
reviewer: {
...application.reviewer,
discordName: application.reviewer.username,
discordName: application?.reviewer?.username,
},
user: { ...application.user, discordName: application.user.username },
user: { ...application.user, discordName: application.user?.username },
});
} else {
ERROR_GENERIC(req, res, 404, "Application does not exist.");
Expand Down

0 comments on commit 105c445

Please sign in to comment.