Skip to content

Commit

Permalink
fix layout rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
daronenko committed Sep 29, 2024
1 parent c09e2e8 commit 93a9ef6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 93a9ef6

Please sign in to comment.