Skip to content

Commit

Permalink
feat: Don't show spots if cap -1
Browse files Browse the repository at this point in the history
  • Loading branch information
d-beezee committed Aug 2, 2024
1 parent d8481a6 commit c3d525b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/users/me/campaigns/_get/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ class RouteItem extends UserRoute<{
);
return {
...campaign,
...(applicationSpot
...(applicationSpot && applicationSpot.cap >= 0
? {
freeSpots:
applicationSpot.cap - (validApplicationsCount?.count || 0),
Expand Down

0 comments on commit c3d525b

Please sign in to comment.