Fix direct navigation to legal pages bypassing login redirect
All checks were successful
Build & Push Container Image / build (push) Successful in 8s

The checkAuth useEffect was overwriting the legal page view state
with 'login' when unauthenticated users navigated directly to
/terms, /privacy, or /support.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jan Willem Mannaerts 2026-02-28 12:15:58 +01:00
parent 047d0de485
commit 31fbc3a1a7

View file

@ -31,7 +31,7 @@ export default function App() {
const [dark, toggleDark] = useDarkMode(); const [dark, toggleDark] = useDarkMode();
useEffect(() => { useEffect(() => {
checkAuth(); if (!view.startsWith('legal-')) checkAuth();
}, []); }, []);
async function checkAuth() { async function checkAuth() {