fix account deletion

This commit is contained in:
Amruth Pillai
2025-01-09 15:46:50 +01:00
parent e29f973889
commit 8a401de5c9
3 changed files with 16 additions and 7 deletions

View File

@ -45,7 +45,7 @@ export const DangerZoneSettings = () => {
// On the second click, delete the account
if (count === 1) {
await Promise.all([deleteUser, logout]);
await Promise.all([deleteUser(), logout()]);
toast({
variant: "success",