Browse Source

refactor: when deleting your account you'll be redirected to home

Kristian Vos 3 years ago
parent
commit
1cf40bb640
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frontend/src/components/modals/RemoveAccount.vue

+ 1 - 1
frontend/src/components/modals/RemoveAccount.vue

@@ -250,7 +250,7 @@ export default {
 						lofig.get("cookie").then(cookie => {
 							document.cookie = `${cookie.SIDname}=;expires=Thu, 01 Jan 1970 00:00:01 GMT;`;
 							this.closeModal("removeAccount");
-							return window.location.reload();
+							window.location.href = "/";
 						})
 					);
 				}