fix: Await logout

This commit is contained in:
Tom Moor
2023-06-27 22:20:41 -04:00
parent 87a675d02b
commit f3d8129a13
3 changed files with 11 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ function UserDelete() {
async (data: FormData) => {
try {
await auth.deleteUser(data);
auth.logout();
await auth.logout();
} catch (error) {
showToast(error.message, {
type: "error",