diff --git a/frontend/src/pages/HomePage.tsx b/frontend/src/pages/HomePage.tsx index 2bba592..5091dac 100644 --- a/frontend/src/pages/HomePage.tsx +++ b/frontend/src/pages/HomePage.tsx @@ -26,6 +26,14 @@ export const HomePage = () => { return; } + // Check if user has a pending email verification (signed up but not verified) + const pendingVerificationEmail = localStorage.getItem('pendingVerificationEmail'); + if (pendingVerificationEmail) { + // Redirect to verify-email page with the stored email + navigate('/verify-email', { state: { email: pendingVerificationEmail } }); + return; + } + loginWithRedirect({ appState: { returnTo: '/garage' } }); };