Skip to content

Commit 3923058

Browse files
committed
Minor fix
1 parent 06e2688 commit 3923058

3 files changed

Lines changed: 314 additions & 216 deletions

File tree

apps/codebattle/lib/codebattle_web/channels/game_channel.ex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,15 @@ defmodule CodebattleWeb.GameChannel do
7575
in_main_draw =
7676
match?(%{draw_index: draw_index, max_draw_index: draw_index}, current_player)
7777

78+
game_params =
79+
game
80+
|> GameView.render_game(head_to_head)
81+
|> Map.put(:hide_banned_player_controls, !!Map.get(tournament, :exclude_banned_players))
82+
7883
{:ok,
7984
%{
8085
active_game_id: active_game_id,
81-
game: GameView.render_game(game, head_to_head),
86+
game: game_params,
8287
current_player: current_player,
8388
in_main_draw: in_main_draw,
8489
tournament: %{

apps/codebattle/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
"@testing-library/jest-dom": "^6.9.1",
146146
"@testing-library/react": "^16.3.2",
147147
"@testing-library/user-event": "^14.6.1",
148-
"@vitejs/plugin-react": "^5.1.4",
148+
"@vitejs/plugin-react": "^6.0.1",
149149
"babel-jest": "^30.2.0",
150150
"babel-plugin-react-inline-svg-unique-id": "^1.5.0",
151151
"babel-plugin-transform-import-meta": "^2.3.3",
@@ -164,7 +164,7 @@
164164
"react-refresh": "^0.18.0",
165165
"stylelint": "^17.3.0",
166166
"stylelint-config-standard-scss": "^17.0.0",
167-
"vite": "^7.3.1",
167+
"vite": "^8.0.8",
168168
"vite-plugin-environment": "^1.1.3"
169169
},
170170
"version": "0.0.0",

0 commit comments

Comments
 (0)