From aa1f456a36b603021c29884e9a6f61fb8c01f82d Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 22 Dec 2025 18:22:07 -0600 Subject: [PATCH] Don't show sync indicator until after git information has loaded --- src/components/GitSyncButton.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/GitSyncButton.tsx b/src/components/GitSyncButton.tsx index 84899879..fc6c8e4a 100644 --- a/src/components/GitSyncButton.tsx +++ b/src/components/GitSyncButton.tsx @@ -38,7 +38,7 @@ export function GitSyncButton({ projectId, className }: GitSyncButtonProps) { const [errorMessage, setErrorMessage] = useState(null); const [copiedUrl, setCopiedUrl] = useState(false); - const { data: gitStatus } = useGitStatus(projectId); + const { data: gitStatus, isLoading: isGitStatusLoading } = useGitStatus(projectId); const { settings } = useGitSettings(); const { user } = useCurrentUser(); const { git } = useGit(); @@ -54,7 +54,7 @@ export function GitSyncButton({ projectId, className }: GitSyncButtonProps) { : null; // Determine if we need to show the indicator dot - const showIndicator = !hasRemote; + const showIndicator = !isGitStatusLoading && !hasRemote; // Reset state when popover opens/closes useEffect(() => {