Skip to content

Commit

Permalink
fix: lack of leave button if session is full
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyJayJay committed Sep 16, 2024
1 parent efb568c commit f14f505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/co/gaiwan/compass/html/sessions.clj
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
[:span :font-bold]
([session user]
;; Progressive enhancement, without htmx the form submission will kick in
(if (<= (:session/capacity session) (:session/signup-count session))
(if (and (<= (:session/capacity session) (:session/signup-count session)) (not (session/participating? session user)))
[:<>
[:span "FULL"]]
[:<>
Expand Down

0 comments on commit f14f505

Please sign in to comment.