mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
Avoid a warning
This commit is contained in:
parent
55fa8a0701
commit
812607ae36
@ -20,7 +20,7 @@ defmodule ChessWeb.GameView do
|
|||||||
def state(conn, game) do
|
def state(conn, game) do
|
||||||
cond do
|
cond do
|
||||||
GameState.game_over?(game) ->
|
GameState.game_over?(game) ->
|
||||||
states[game.state]
|
states()[game.state]
|
||||||
your_turn?(conn, game) ->
|
your_turn?(conn, game) ->
|
||||||
gettext("Your turn")
|
gettext("Your turn")
|
||||||
true -> nil
|
true -> nil
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user