Skip to content

Commit

Permalink
Rename determineState->determinePostAuthState
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNeshi committed Dec 11, 2023
1 parent 4484b01 commit 75989e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/contexts/Auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function withAuth<Props>(
}

if (!user) {
const state = determineState(location);
const state = determinePostAuthState(location);
return <Navigate to={appRoutes.signin} state={state} replace />;
}

Expand All @@ -50,7 +50,7 @@ export default function withAuth<Props>(
};
}

function determineState(location: Location): SigninRouteState {
function determinePostAuthState(location: Location): SigninRouteState {
if (location.pathname === appRoutes.register) {
const routeState: WelcomeRouteState = { continue: true };
return {
Expand Down

0 comments on commit 75989e5

Please sign in to comment.