Fix direct navigation to legal pages bypassing login redirect
All checks were successful
Build & Push Container Image / build (push) Successful in 8s
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:
parent
047d0de485
commit
31fbc3a1a7
1 changed files with 1 additions and 1 deletions
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue