ソースを参照

fix: simplify logout method by removing unnecessary subscription

EmilianoChavarria 3 週間 前
コミット
994b1419fd
1 ファイル変更2 行追加7 行削除
  1. 2 7
      Front/src/app/shared/navbar-home/navbar-home.component.ts

+ 2 - 7
Front/src/app/shared/navbar-home/navbar-home.component.ts

@@ -195,13 +195,8 @@ export class NavbarHomeComponent implements OnInit {
 
 
   logout() {
-    this.authService.logout().subscribe((response) => {
-      localStorage.clear();
-      this._router.navigate(['']);
-    },
-      (err) => {
-      }
-    );
+    localStorage.clear();
+    this._router.navigate(['']);
   }
 
   checkUrl() {