From 93a9ef6623e1c239a5f6c19f7f0c3e7c68700613 Mon Sep 17 00:00:00 2001 From: Daniil Mironenko Date: Sun, 29 Sep 2024 13:35:37 +0300 Subject: [PATCH] fix layout rendering --- src/components/header/header.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/header/header.js b/src/components/header/header.js index be7e94f..e1b95fb 100644 --- a/src/components/header/header.js +++ b/src/components/header/header.js @@ -93,8 +93,7 @@ export class HeaderView extends View { if (response.status === 200) { localStorage.removeItem("user"); - this.render(); - await this.router.goTo("/"); + this.router.renderLayout(); } else { console.error("logout failed:", response.body); }