authReady callback simplify

This commit is contained in:
Igor Loskutov
2025-09-02 14:00:00 -04:00
parent 11ed585cea
commit 5ffc312d4a
7 changed files with 99 additions and 83 deletions

View File

@@ -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"