Skip to content

Commit

Permalink
Merge pull request #6002 from kjchiu/remove-filter-games-button
Browse files Browse the repository at this point in the history
remove useless filter games button
  • Loading branch information
jwarwick authored Jul 29, 2021
2 parents 3867660 + 519992c commit 88ee3b7
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/cljs/nr/gamelobby.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -445,18 +445,8 @@
(filter #(= (-> % :user :_id) (:_id @user)))
empty?))
#(do (replay-game s)
(resume-sound))]
[cond-button (tr [:lobby.filter-games "Filter games"])
(and (not (or @gameid
(:editing @s)
(= "tournament" (:room @s))))
(->> @games
(mapcat :players)
(filter #(= (-> % :user :_id) (:_id @user)))
empty?))
#(do (replay-game s)
(resume-sound))]
]]
(resume-sound))]]]

(let [password-game (some #(when (= @password-gameid (:gameid %)) %) @games)]
[game-list user {:password-game password-game
:editing (:editing @s)
Expand Down

0 comments on commit 88ee3b7

Please sign in to comment.