From 11d2b0da90065306f3f66439f3dad46dcc24458d Mon Sep 17 00:00:00 2001 From: RaidMax Date: Mon, 24 Jan 2022 11:26:56 -0600 Subject: [PATCH] display "--" for no zscore --- WebfrontCore/Views/Server/_Scoreboard.cshtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WebfrontCore/Views/Server/_Scoreboard.cshtml b/WebfrontCore/Views/Server/_Scoreboard.cshtml index ceaecbba5..51d498348 100644 --- a/WebfrontCore/Views/Server/_Scoreboard.cshtml +++ b/WebfrontCore/Views/Server/_Scoreboard.cshtml @@ -1,4 +1,5 @@ @using WebfrontCore.ViewModels +@using System.Globalization @model WebfrontCore.ViewModels.ScoreboardInfo @{ Layout = null; @@ -48,7 +49,7 @@ @(client.Deaths ?? 0) @Math.Round(client.Kdr ?? 0, 2) @Math.Round(client.ScorePerMinute ?? 0) - @Math.Round(client.ZScore ?? 0, 2) + @(client.ZScore == null ? "--" : Math.Round(client.ZScore.Value, 2).ToString(CultureInfo.CurrentCulture)) @client.Ping }