diff --git a/src/components/shared/ProtectedRoute/index.tsx b/src/components/shared/ProtectedRoute/index.tsx index 7290cef..8a52651 100644 --- a/src/components/shared/ProtectedRoute/index.tsx +++ b/src/components/shared/ProtectedRoute/index.tsx @@ -35,7 +35,7 @@ interface ProtectedRouteProps { * * @returns JSX.Element */ -export const PublicRoute = ({ +export const ProtectedRoute = ({ roles = [], }: ProtectedRouteProps): React.JSX.Element => { const { data, isLoading, error, fetchCurrentUser } = useFetchCurrentUser();