fixed deleting the user

This commit is contained in:
Sarah Faey 2022-12-01 23:30:46 +01:00
parent 26780fae6e
commit f9e05ab545
2 changed files with 4 additions and 10 deletions

View file

@ -112,11 +112,7 @@
bool confirmed = await JsRuntime.InvokeAsync<bool>("confirm", "Are you sure you want to delete this Website Account?\nThis will sign you off in every raid in which you are signed up.");
if (confirmed)
{
await UserService.DeleteUser(_user);
}
else
{
NavigationManager.NavigateTo("accountedit");
await UserService.DeleteUser(_user.Id);
}
}
}