many changes across the app
This commit is contained in:
@@ -41,5 +41,5 @@ export default function ({ children }: Props) {
|
||||
}, [status]);
|
||||
|
||||
if (status !== "loading" && !redirect) return <>{children}</>;
|
||||
else return <Loader />;
|
||||
// else return <Loader />;
|
||||
}
|
||||
|
||||
@@ -36,5 +36,5 @@ export default function ({ children }: Props) {
|
||||
);
|
||||
else if ((status === "unauthenticated" && !redirect) || !routeExists)
|
||||
return <>{children}</>;
|
||||
else return <Loader />;
|
||||
else return <></>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user