Skip to content

Commit

Permalink
Fix OS prediction text
Browse files Browse the repository at this point in the history
  • Loading branch information
L-e-x-o-n committed Dec 26, 2024
1 parent 89fd9fa commit 59f5a95
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/teiserver_web/live/battles/match/show.ex
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,14 @@ defmodule TeiserverWeb.Battle.MatchLive.Show do
|> assign(:events_by_team_and_type, %{})
|> assign(:replay, nil)
|> assign(:rating_status, nil)
|> assign(:prediction_text, [])
end
end

defp get_prediction_text(rating_logs, members) do
if(rating_logs == %{}) do
# Unrated match will not have rating logs
nil
[]
else
simple_rating_logs =
Enum.map(members, fn m ->
Expand Down Expand Up @@ -309,7 +310,7 @@ defmodule TeiserverWeb.Battle.MatchLive.Show do
}
]
else
nil
[]
end
end
end
Expand Down

0 comments on commit 59f5a95

Please sign in to comment.