feat: optional provider
This commit is contained in:
@@ -23,7 +23,7 @@ export function RoutePrivate({
|
||||
return <PageLoading />;
|
||||
}
|
||||
|
||||
if (!user) {
|
||||
if (!user || !pathname.startsWith(`/${user.id}`)) {
|
||||
return (
|
||||
<Navigate
|
||||
to={unauthorizedRedirectTo}
|
||||
|
||||
Reference in New Issue
Block a user