This commit is contained in:
2026-05-22 21:08:58 +04:00
parent 2ccfac2d04
commit 6f8195cda1
5 changed files with 17 additions and 13 deletions

View File

@@ -33,7 +33,7 @@ defmodule ShootingEventPhx.Domain.Stages do
def resolve_reset_stages(stage) do
case normalize_stage(stage) do
"preliminary" -> {:ok, @preliminary_round_stages}
"final" -> {:ok, @final_round_stages}
"final" -> {:ok, @final_round_stages ++ ["final_tiebreak"]}
"prelim_tiebreak" -> {:ok, ["prelim_tiebreak"]}
"final_tiebreak" -> {:ok, ["final_tiebreak"]}
_ -> {:error, "invalid stage"}