diff --git a/src/domain/artifactComparison.ts b/src/domain/artifactComparison.ts index a6064a0b773..22dc5205f9c 100644 --- a/src/domain/artifactComparison.ts +++ b/src/domain/artifactComparison.ts @@ -211,17 +211,13 @@ export const compareArtifacts = ( status: !leftComplete || !rightComplete ? "truncated" - : changes.some( - ({ classification }) => classification === "contradiction", - ) + : summary.contradiction > 0 ? "contradiction" - : !fullyCovered + : !fullyCovered || summary.unknown > 0 ? "unknown" - : changes.some(({ classification }) => classification === "unknown") - ? "unknown" - : changes.length === 0 - ? "unchanged" - : "changed", + : changes.length === 0 + ? "unchanged" + : "changed", left_manifest_id: left.inventory.manifest.manifest_id, right_manifest_id: right.inventory.manifest.manifest_id, summary,