Only display the git sync indicator if there are at least 2 commits

This commit is contained in:
Alex Gleason committed 2025-12-23 03:31:55 -06:00
1 parent 706ec3642e
commit 9d32a13971
1 file changed
+2 -1
+2 -1
View File
@@ -21,7 +21,8 @@ export function GitSyncButton({ projectId, className }: GitSyncButtonProps) {
const hasRemote = !!originRemote;
// Determine if we need to show the indicator dot
const showIndicator = !isGitStatusLoading && !hasRemote;
// Show indicator if no origin remote is configured, UNLESS there are less than 2 commits
const showIndicator = !isGitStatusLoading && !hasRemote && (gitStatus?.totalCommits ?? 0) >= 2;
return (
<Popover open={open} onOpenChange={setOpen}>