Skip to content

Commit

Permalink
fix(product-offer): fix contracts agreements check (#3575)
Browse files Browse the repository at this point in the history
Signed-off-by: Cyrille Bourgois <[email protected]>
  • Loading branch information
Cyrille Bourgois authored and marie-j committed Sep 4, 2020
1 parent ee51190 commit f1a7b88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default class Workflow {
* @return {boolean}
*/
hasContractsAgreements() {
return !this.contracts.length || this.agreeContracts;
return (this.contracts && !this.contracts.length) || this.agreeContracts;
}

/**
Expand Down

0 comments on commit f1a7b88

Please sign in to comment.