fix displaying correct server name on top players

This commit is contained in:
RaidMax 2022-06-02 17:53:14 -05:00
parent 169105e849
commit ee14306db9

View File

@ -5,7 +5,7 @@
<div class="col-12 col-lg-9 col-xl-10 mt-0">
<h2 class="content-title mb-0">Top Players</h2>
<span class="text-muted">
<color-code value="@(ViewBag.SelectedServerName ?? ViewBag.Localization["WEBFRONT_STATS_INDEX_ALL_SERVERS"])"></color-code>
<color-code value="@(Model.FirstOrDefault(m => m.Endpoint == ViewBag.SelectedServerId)?.Name ?? ViewBag.Localization["WEBFRONT_STATS_INDEX_ALL_SERVERS"])"></color-code>
</span>
<div id="topPlayersContainer">