1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00

Avoid a warning

This commit is contained in:
Daniel Barber 2018-04-13 17:31:20 -04:00
parent 55fa8a0701
commit 812607ae36
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -20,7 +20,7 @@ defmodule ChessWeb.GameView do
def state(conn, game) do
cond do
GameState.game_over?(game) ->
states[game.state]
states()[game.state]
your_turn?(conn, game) ->
gettext("Your turn")
true -> nil