Skip to content

Commit

Permalink
Merge pull request #2117 from bcgov/feature/EDX-3087
Browse files Browse the repository at this point in the history
Defensive check to avoid blank signatory records in DB.
  • Loading branch information
alexmcdermid authored Dec 30, 2024
2 parents accb111 + 1987520 commit 4e01032
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default {
});
},
isSignedByAllParties(submissionSignatures) {
return submissionSignatures ? submissionSignatures.length === 3 : false;
return submissionSignatures ? submissionSignatures.filter(signer => signer.districtSignatoryUserID && signer.districtSignatoryUserID !== '').length === 3 : false;
}
}
};
Expand Down

0 comments on commit 4e01032

Please sign in to comment.