From 8bd0337168b466327641cb4f7d670dcde24b6eb3 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Mon, 24 Jan 2022 11:05:07 -0600 Subject: [PATCH] scoreboard sort tweak --- WebfrontCore/Views/Server/_Scoreboard.cshtml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WebfrontCore/Views/Server/_Scoreboard.cshtml b/WebfrontCore/Views/Server/_Scoreboard.cshtml index 50c2f0f9f..ceaecbba5 100644 --- a/WebfrontCore/Views/Server/_Scoreboard.cshtml +++ b/WebfrontCore/Views/Server/_Scoreboard.cshtml @@ -13,9 +13,9 @@ string GetColumnSortDisplay(string propertyName) { - if (propertyName == Model.OrderByKey) + if (propertyName == (Model.OrderByKey ?? nameof(ClientScoreboardInfo.Score))) { - return Model.ShouldOrderDescending ? "" : ""; + return Model.ShouldOrderDescending ? "" : ""; } return null; @@ -23,7 +23,7 @@ }
@ViewBag.Localization["WEBFRONT_SCOREBOARD_TABLE_PLAYER"]@Html.Raw(GetColumnSortDisplay(nameof(ClientScoreboardInfo.ClientName)))