diff --git a/apps/web/src/App.tsx b/apps/web/src/App.tsx index d65ce36..da93316 100644 --- a/apps/web/src/App.tsx +++ b/apps/web/src/App.tsx @@ -143,11 +143,6 @@ export function App() { .catch(() => setAuthDisabled(false)); }, []); - // Show login selector page (only in development) - if (import.meta.env.DEV && location.pathname === "/login") { - return ; - } - // Public booking redirect pages — no auth or portal chrome needed if (location.pathname === "/booking/confirmed") { return ; @@ -162,8 +157,13 @@ export function App() { // Still loading auth state if (authDisabled === null || sessionLoading) return null; + // Dev mode: show login selector + if (authDisabled && location.pathname === "/login") { + return ; + } + // Dev mode: use dev login selector - if (authDisabled && !getDevUser() && location.pathname !== "/login") { + if (authDisabled && !getDevUser()) { return ; }