From a2e031326e51f7663c2d864dd0d08a65f180318e Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Fri, 14 Feb 2025 14:41:52 +0100 Subject: [PATCH] fix: page doesn't reload on user deletion --- frontend/src/pages/account/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/account/index.tsx b/frontend/src/pages/account/index.tsx index 2a8a43d..21ae1e0 100644 --- a/frontend/src/pages/account/index.tsx +++ b/frontend/src/pages/account/index.tsx @@ -413,7 +413,7 @@ const Account = () => { onConfirm: async () => { await userService .removeCurrentUser() - .then(window.location.reload) + .then(()=> window.location.reload()) .catch(toast.axiosError); }, })