Don't show sync indicator until after git information has loaded

This commit is contained in:
Alex Gleason committed 2025-12-22 18:22:07 -06:00
1 parent 117cc2ee1e
commit aa1f456a36
1 file changed
+2 -2
+2 -2
View File
@@ -38,7 +38,7 @@ export function GitSyncButton({ projectId, className }: GitSyncButtonProps) {
const [errorMessage, setErrorMessage] = useState<string | null>(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(() => {