From f1a7b8848772a15172dab4b38d92b7e4637c5fdd Mon Sep 17 00:00:00 2001 From: Cyrille Bourgois Date: Fri, 4 Sep 2020 11:44:18 +0200 Subject: [PATCH] fix(product-offer): fix contracts agreements check (#3575) Signed-off-by: Cyrille Bourgois --- .../src/workflows/product-offers-workflow.class.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/manager/modules/product-offers/src/workflows/product-offers-workflow.class.js b/packages/manager/modules/product-offers/src/workflows/product-offers-workflow.class.js index 7f90b8fc2cd8..9525c86c68c6 100644 --- a/packages/manager/modules/product-offers/src/workflows/product-offers-workflow.class.js +++ b/packages/manager/modules/product-offers/src/workflows/product-offers-workflow.class.js @@ -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; } /**