Fix logout button by using state object references
Build and Push Docker Image / build (push) Successful in 38s
Licence Check / Licence compatibility and copyright header verification (push) Successful in 1m5s
CI / Security audit (push) Successful in 1m17s
CI / Tests & coverage (push) Failing after 1m32s

- Fix undefined variable references in handleLogoutClick
- Use state.statusRefreshHandle instead of statusRefreshHandle
- Use state.currentUser instead of currentUser
This commit is contained in:
2026-05-21 01:39:00 +01:00
parent b3664747cb
commit f2b44f65af
+2 -2
View File
@@ -104,9 +104,9 @@ export async function handleLogoutClick() {
try { try {
stopSSE(); stopSSE();
stopHistoryRefresh(); stopHistoryRefresh();
if (statusRefreshHandle) { clearInterval(statusRefreshHandle); statusRefreshHandle.value = null; } if (state.statusRefreshHandle) { clearInterval(state.statusRefreshHandle); state.statusRefreshHandle = null; }
await apiHandleLogout(); await apiHandleLogout();
currentUser = null; state.currentUser = null;
clearHistory(); clearHistory();
showLogin(); showLogin();
} catch (err) { } catch (err) {