Skip to content

Commit 09db697

Browse files
fix: Correctly handle active ban expiration and update city field reference
1 parent f1c6b06 commit 09db697

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/XtremeIdiots.Portal.Web/Views/Players/Details.cshtml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
}
152152
@if (activeBan.Expires.HasValue)
153153
{
154-
<span>— expires <time user-time utc="@activeBan.Expires"></time></span>
154+
<span>— expires <time user-time utc="@activeBan.Expires.Value"></time></span>
155155
}
156156
else
157157
{
@@ -303,11 +303,11 @@
303303
</dd>
304304
</div>
305305
}
306-
@if (!string.IsNullOrWhiteSpace(Model.Intelligence.City))
306+
@if (!string.IsNullOrWhiteSpace(Model.Intelligence.CityName))
307307
{
308308
<div class="detail-field">
309309
<dt class="detail-label">City</dt>
310-
<dd class="detail-value">@Model.Intelligence.City</dd>
310+
<dd class="detail-value">@Model.Intelligence.CityName</dd>
311311
</div>
312312
}
313313
</dl>
@@ -510,7 +510,7 @@
510510
</div>
511511

512512
<!-- Related Players -->
513-
@if (Model.EnrichedRelatedPlayers != null && Model.EnrichedRelatedPlayers.Count != 0)
513+
@if (Model?.EnrichedRelatedPlayers != null && Model.EnrichedRelatedPlayers.Count != 0)
514514
{
515515
<div class="row">
516516
<div class="col-12">

0 commit comments

Comments
 (0)