fix misc webfront errors on first run after configuration

This commit is contained in:
RaidMax
2022-01-22 13:30:32 -06:00
parent 7fcb2202bd
commit 032753236b
4 changed files with 12 additions and 9 deletions

View File

@ -114,7 +114,7 @@ namespace WebfrontCore.Controllers
ViewBag.Title += " " + Localization["WEBFRONT_CLIENT_PROFILE_TITLE"];
ViewBag.Description = $"Client information for {strippedName}";
ViewBag.Keywords = $"IW4MAdmin, client, profile, {strippedName}";
ViewBag.UseNewStats = _configurationHandler.Configuration().EnableAdvancedMetrics;
ViewBag.UseNewStats = _configurationHandler.Configuration()?.EnableAdvancedMetrics ?? true;
return View("Profile/Index", clientDto);
}