From 59f5a95e311454f2c0eebf31a69cb945d6cbb35e Mon Sep 17 00:00:00 2001 From: Lexon <44340857+L-e-x-o-n@users.noreply.github.com> Date: Thu, 26 Dec 2024 15:10:30 +0100 Subject: [PATCH] Fix OS prediction text --- lib/teiserver_web/live/battles/match/show.ex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/teiserver_web/live/battles/match/show.ex b/lib/teiserver_web/live/battles/match/show.ex index 4b2a35a49..203bf912d 100644 --- a/lib/teiserver_web/live/battles/match/show.ex +++ b/lib/teiserver_web/live/battles/match/show.ex @@ -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 -> @@ -309,7 +310,7 @@ defmodule TeiserverWeb.Battle.MatchLive.Show do } ] else - nil + [] end end end