Skip to content

Commit

Permalink
trying to debug prod
Browse files Browse the repository at this point in the history
  • Loading branch information
subru-37 committed Jan 12, 2025
1 parent fa22280 commit ace9324
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/web-admin/src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ function Dashboard() {
const router = useRouter();
const { user, isAuthenticated, isLoading, loginWithRedirect } = useAuth0();
const { accountDetails } = useContext(account);
useEffect(() => {
if (isAuthenticated) {
router.push(`/${accountDetails.orgId}/events`);
}
}, [router.pathname]);
// useEffect(() => {
// if (isAuthenticated) {
// router.push(`/${accountDetails.orgId}/events`);
// }
// }, [router.pathname]);

return <DashboardLayout>{!isAuthenticated && <Landing />}</DashboardLayout>;
}
Expand Down

0 comments on commit ace9324

Please sign in to comment.