Skip to content

Commit

Permalink
Remove duplicate null check
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Guldborg committed Apr 23, 2024
1 parent fd6de96 commit a32c244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shifty.App/Shared/NavMenu.razor
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<MudNavMenu>
<MudNavLink Href="" Match="NavLinkMatch.All" Icon="@Icons.Material.Filled.Home">Home</MudNavLink>
@if (_user is not null && _user.IsInRole("Board") || _user is not null && _user.IsInRole("Manager"))
@if (_user is not null && (_user.IsInRole("Board") || _user.IsInRole("Manager")))
{
<MudNavLink Href="Voucher" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.Sell">Issue vouchers</MudNavLink>
}
Expand Down

0 comments on commit a32c244

Please sign in to comment.