fix(git-panel): show fetch button when remote is diverged

This commit is contained in:
Haileyesus
2026-02-23 10:45:16 +03:00
parent dad3ed6d86
commit 2ed5348cf5

View File

@@ -62,7 +62,7 @@ export default function GitPanelHeader({
const aheadCount = remoteStatus?.ahead || 0;
const behindCount = remoteStatus?.behind || 0;
const remoteName = remoteStatus?.remoteName || 'remote';
const shouldShowFetchButton = aheadCount > 0 || (behindCount > 0 && aheadCount > 0);
const shouldShowFetchButton = aheadCount > 0 && behindCount > 0;
const requestPullConfirmation = () => {
onRequestConfirmation({