Skip to content

Commit 96e2acf

Browse files
committed
Fix alternative commit info condition
1 parent e372ca9 commit 96e2acf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/App/Lab/CommitHashView.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ title="@GetTitle()">@Commit.ShortHash</a>
174174

175175
private async Task LoadAlternativeInfoAsync()
176176
{
177-
if ((AlternativeRepoUrl is null && AlternativeCommitHash is null) ||
178-
(AlternativeRepoUrl == Commit.RepoUrl && AlternativeCommitHash == Commit.Hash))
177+
if ((AlternativeRepoUrl is null || AlternativeRepoUrl == Commit.RepoUrl) &&
178+
(AlternativeCommitHash is null || AlternativeCommitHash == Commit.Hash))
179179
{
180180
alternativeCommit = null;
181181
}

0 commit comments

Comments
 (0)