Skip to content

Commit

Permalink
Updated error text to match WCA regulations
Browse files Browse the repository at this point in the history
  • Loading branch information
mckeenicholas committed Mar 27, 2024
1 parent 136a0c1 commit 3efadd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/wca_live/scoretaking.ex
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ defmodule WcaLive.Scoretaking do

Enum.find_index(Enum.zip(round_results, min), fn {x, y} -> x < y end)
|> case do
0 -> "rounds with less than 8 competitors cannot have a subsequent round"
1 -> "rounds with less than 16 competitors can have at most one subsequent round"
2 -> "rounds with less than 100 competitors can have at most two subsequent rounds"
0 -> "Rounds with 7 or fewer competitors must not have subsequent rounds"
1 -> "Rounds with 15 or fewer competitors must have at most one subsequent round"
2 -> "Rounds with 99 or fewer competitors must have at most two subsequent rounds"
_ -> :nil
end
end
Expand Down

0 comments on commit 3efadd3

Please sign in to comment.