From 4fcab9979b2f1986e3902747be27ec85c584a0ee Mon Sep 17 00:00:00 2001 From: Jen Beckett <115109120+jenbeckett@users.noreply.github.com> Date: Mon, 2 Dec 2024 10:46:44 -0800 Subject: [PATCH] couple more small fixes --- .../eceweApplication/EceweEligibilityQuestions.vue | 4 ++-- frontend/src/store/summaryDeclaration.js | 9 +-------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/frontend/src/components/eceweApplication/EceweEligibilityQuestions.vue b/frontend/src/components/eceweApplication/EceweEligibilityQuestions.vue index c7560123..24caaba7 100644 --- a/frontend/src/components/eceweApplication/EceweEligibilityQuestions.vue +++ b/frontend/src/components/eceweApplication/EceweEligibilityQuestions.vue @@ -242,13 +242,13 @@ diff --git a/frontend/src/store/summaryDeclaration.js b/frontend/src/store/summaryDeclaration.js index 4501093d..78a34c12 100644 --- a/frontend/src/store/summaryDeclaration.js +++ b/frontend/src/store/summaryDeclaration.js @@ -50,14 +50,7 @@ export const useSummaryDeclarationStore = defineStore('summaryDeclaration', { ) : false; }, - isECEWEComplete: (state) => { - //TODO - update logic for facility level and union question - return state.summaryModel?.application?.isEceweComplete && state.summaryModel?.facilities?.length > 0 - ? state.summaryModel?.facilities.every( - (facility) => facility.ecewe?.optInOrOut === 1 || facility.ecewe?.optInOrOut === 0, - ) - : false; - }, + isFacilityComplete: (state) => { return state.summaryModel?.facilities?.length > 0 ? state.summaryModel?.facilities.every((facility) => facility.facilityInfo?.isFacilityComplete == true)