Skip to content

Commit

Permalink
ran lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adhi0331 committed Jun 15, 2024
1 parent 953e86c commit dd84849
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/hooks/redirect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
};
Expand Down

0 comments on commit dd84849

Please sign in to comment.