Skip to content

Commit

Permalink
filter by submitted teams, instead of all
Browse files Browse the repository at this point in the history
  • Loading branch information
zineanteoh committed Oct 29, 2023
1 parent c0750e4 commit 78bbd9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default async function handler(
let teams = await Team.find();

if (req.query.submitted) {
teams = teams.filter(team => team.devpost !== '');
teams = teams.filter(team => team.devpost !== '' && team.devpost !== undefined);
}

switch (session!.userType) {
Expand Down

1 comment on commit 78bbd9d

@vercel
Copy link

@vercel vercel bot commented on 78bbd9d Oct 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.