Skip to content

Commit

Permalink
clean up probelems tab in vs code
Browse files Browse the repository at this point in the history
  • Loading branch information
ssundahlTTD committed Feb 18, 2025
1 parent b237e83 commit fe07a55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@
"uncopied",
"undici",
"unrelate"
]
],
"cSpell.diagnosticLevel": "Hint"
}
2 changes: 1 addition & 1 deletion src/api/controllers/userController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class UserController {

@httpPut('/current/acceptTerms')
public async acceptTerms(@request() req: UserRequest, @response() res: Response): Promise<void> {
const doesUserHaveAParticipant = (req.user?.participants?.length ?? 0) >= 1 ?? false;
const doesUserHaveAParticipant = (req.user?.participants?.length ?? 0) >= 1;

if (!doesUserHaveAParticipant) {
res.status(403).json({
Expand Down

0 comments on commit fe07a55

Please sign in to comment.