Skip to content

Commit

Permalink
Merge pull request #54 from tobySolutions/tobySolutions-patch-9
Browse files Browse the repository at this point in the history
Update PrivateRoute.tsx
  • Loading branch information
chibuike-19 authored Nov 27, 2024
2 parents 227c6b0 + cd26cfd commit e8c7eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/lib/PrivateRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const PrivateRoute = ({ children }: PrivateRouteProps) => {
const userToken = getDataInCookie("userToken");

if (!userToken) {
return <Navigate to="/login" replace />;
return <Navigate to="/signIn" replace />;
}

return children;
Expand Down

0 comments on commit e8c7eab

Please sign in to comment.