Skip to content

Commit

Permalink
Update navbar.html
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Vishal <vishalvivek488@gmail.com>
  • Loading branch information
vishalvivekm authored Mar 3, 2025
1 parent cb8454b commit 6ded515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/navbar.html
Original file line number Diff line number Diff line change
@@ -232,12 +232,12 @@
},
});

if (res.status === 401) { // cookie has expired
if (re.status === 401) { // cookie has expired
expiredToken = token;
throw new Error("unauthorized");
}
if (re.status !== 200) {
throw new Error(`HTTP error! status: ${response.status}`);
throw new Error(`HTTP error! status: ${re.status}`);
}

const response = await re.json();

0 comments on commit 6ded515

Please sign in to comment.