Reload instead of rerender sessions when ip banned

This commit is contained in:
Marcel Baumgartner
2023-05-22 23:18:09 +02:00
parent 8098368660
commit eeba837009

View File

@@ -194,10 +194,10 @@
if(IsIpBanned) if(IsIpBanned)
await InvokeAsync(StateHasChanged); await InvokeAsync(StateHasChanged);
await Event.On<Object>("ipBan.update", this, async o => await Event.On<Object>("ipBan.update", this, async _ =>
{ {
IsIpBanned = await IpBanService.IsBanned(); IsIpBanned = await IpBanService.IsBanned();
await InvokeAsync(StateHasChanged); NavigationManager.NavigateTo(NavigationManager.Uri, true);
}); });
User = await IdentityService.Get(); User = await IdentityService.Get();