diff --git a/frontend/src/hooks/redirect.tsx b/frontend/src/hooks/redirect.tsx index 006f8e1..1dbb315 100644 --- a/frontend/src/hooks/redirect.tsx +++ b/frontend/src/hooks/redirect.tsx @@ -53,7 +53,8 @@ export const useRedirection = ({ checkShouldRedirect, redirectURL }: UseRedirect */ export const useRedirectToHomeIfSignedIn = () => { useRedirection({ - checkShouldRedirect: ({ firebaseUser, piaUser }) => firebaseUser !== null && piaUser !== null && piaUser.approvalStatus, + checkShouldRedirect: ({ firebaseUser, piaUser }) => + firebaseUser !== null && piaUser !== null && piaUser.approvalStatus, redirectURL: HOME_URL, }); };