From 5863a49d3a507ee2e37e25bf2ac97cf29e4e81ae Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Mon, 13 Oct 2025 17:13:37 +0000 Subject: [PATCH] Fix avatar loading by preventing profile state race condition --- src/components/auth/AuthButtons.tsx | 2 +- src/hooks/useAuth.tsx | 35 +++++++++++++---------------- 2 files changed, 17 insertions(+), 20 deletions(-) diff --git a/src/components/auth/AuthButtons.tsx b/src/components/auth/AuthButtons.tsx index 18b9b58a..39053ed6 100644 --- a/src/components/auth/AuthButtons.tsx +++ b/src/components/auth/AuthButtons.tsx @@ -97,7 +97,7 @@ export function AuthButtons() { return