Skip to content

Commit e412b50

Browse files
committed
Updated show.ex file with new game handling logic.
1 parent 5b1b235 commit e412b50

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • copi.owasp.org/lib/copi_web/live/game_live

copi.owasp.org/lib/copi_web/live/game_live/show.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ defmodule CopiWeb.GameLive.Show do
105105
end
106106

107107
def topic(game_id) do
108-
"game:#{game_id}"
108+
"game:" <> Integer.to_string(game_id)
109109
end
110110

111111
@spec card_played_in_round(any, any) :: any
@@ -137,4 +137,4 @@ defmodule CopiWeb.GameLive.Show do
137137
_ -> "1.0"
138138
end
139139
end
140-
end
140+
end

0 commit comments

Comments
 (0)