mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-22 21:29:05 +00:00
authReady callback simplify
This commit is contained in:
@@ -8,10 +8,9 @@ export default function AuthWrapper({
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
const { isAuthReady, isLoading } = useAuthReady();
|
||||
const { isLoading } = useAuthReady();
|
||||
|
||||
// Show spinner while auth is loading
|
||||
if (isLoading || !isAuthReady) {
|
||||
if (isLoading) {
|
||||
return (
|
||||
<Flex
|
||||
flexDir="column"
|
||||
|
||||
Reference in New Issue
Block a user