We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94a74d6 commit def56deCopy full SHA for def56de
1 file changed
src/lib/auth.js
@@ -79,12 +79,7 @@ class AuthService {
79
const res = await fetch(`${config.API_BASE}/login`, {
80
method: "DELETE",
81
});
82
- if (res.ok) {
83
- userContextMenu.el.classList.remove("active");
84
- document.removeEventListener("click", handleClickOutside);
85
- toast("Logged out successfully");
86
- updateSidebarAvatar();
87
- } else {
+ if (!res.ok) {
88
throw new Error("Unable to logout.");
89
}
90
} catch (error) {
0 commit comments