Merge remote-tracking branch 'origin/develop' into feat/update-get-started-template

This commit is contained in:
alt0
2022-08-12 18:10:07 +08:00
19 changed files with 358 additions and 239 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ export function RoutePrivate({
return <PageLoading />;
}
if (!user) {
if (!user || !pathname.startsWith(`/${user.id}`)) {
return (
<Navigate
to={unauthorizedRedirectTo}