diff --git a/src/main/decoder/decoder.ts b/src/main/decoder/decoder.ts index 558993e..6973c1a 100644 --- a/src/main/decoder/decoder.ts +++ b/src/main/decoder/decoder.ts @@ -393,7 +393,7 @@ export function ReplaceOwnerInfoWithClaimant< const ownerMissing = identityKeys.every((k) => _.isEmpty((jobObject as any)[`ownr_${k}`]), ); - const claimantHasAll = identityKeys.every( + const claimantHasSome = identityKeys.some( (k) => !_.isEmpty((jobObject as any)[`clmt_${k}`]), ); const claimantMissing = identityKeys.every((k) => @@ -416,7 +416,7 @@ export function ReplaceOwnerInfoWithClaimant< }); }; - if (ownerMissing && claimantHasAll) { + if (ownerMissing && claimantHasSome) { promote("clmt"); } else if (ownerMissing && claimantMissing) { promote("insd");