Explorar o código

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

Kristian Vos %!s(int64=3) %!d(string=hai) anos
pai
achega
1cf40bb640
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 = "/";
 						})
 					);
 				}