1
0
mirror of synced 2024-11-15 10:57:34 +01:00

Add check for AccessCodes

This commit is contained in:
shiibe 2024-04-09 20:27:41 -04:00
parent 2789b82a80
commit 19db91fc59

View File

@ -78,10 +78,16 @@
<MudCardContent>
<MudText Typo="Typo.body2" Style="font-weight:bold">Access Code</MudText>
<MudText Style="font-family:monospace;overflow:hidden;overflow-x:scroll">
@foreach (var digitGroup in StringUtil.SplitIntoGroups(user.AccessCodes[0], 4))
@if (user.AccessCodes.Count > 0)
{
<span class="mr-2">@digitGroup</span>
}
@foreach (var digitGroup in StringUtil.SplitIntoGroups(user.AccessCodes[0], 4))
{
<span class="mr-2">@digitGroup</span>
}
} else
{
<span class="mr-2">@Localizer["N/A"]</span>
}
</MudText>
@if (user.AccessCodes.Count > 1)
{