Skip to content

Commit 9912e2d

Browse files
committed
chore: update incorrect variable names in BranchFooter
1 parent 0082099 commit 9912e2d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/src/lib/branch/BranchFooter.svelte

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@
2626
});
2727
2828
const localCommits = getLocalCommits();
29-
const remoteCommits = getLocalAndRemoteCommits();
30-
const unknownCommits = getRemoteCommits();
29+
const localAndRemoteCommits = getLocalAndRemoteCommits();
30+
const remoteCommits = getRemoteCommits();
3131
3232
let isLoading: boolean;
3333
let isInViewport = false;
3434
35-
$: canBePushed = $localCommits.length !== 0 || $unknownCommits.length !== 0;
36-
$: hasUnknownCommits = $unknownCommits.length > 0;
35+
$: canBePushed = $localCommits.length !== 0 || $remoteCommits.length !== 0;
36+
$: hasRemoteCommits = $remoteCommits.length > 0;
3737
$: hasCommits =
38-
$localCommits.length > 0 || $remoteCommits.length > 0 || $unknownCommits.length > 0;
38+
$localCommits.length > 0 || $localAndRemoteCommits.length > 0 || $remoteCommits.length > 0;
3939
</script>
4040

4141
{#if !isUnapplied && hasCommits}
@@ -66,7 +66,7 @@
6666
wide
6767
projectId={project.id}
6868
requiresForce={$branch.requiresForce}
69-
integrate={hasUnknownCommits}
69+
integrate={hasRemoteCommits}
7070
{isLoading}
7171
on:trigger={async (e) => {
7272
isLoading = true;

0 commit comments

Comments
 (0)