From 16170b0c26a28c95c7bcfafbdfa16f0143087dc1 Mon Sep 17 00:00:00 2001 From: Katie Kroell Date: Thu, 2 Nov 2023 16:31:15 -0400 Subject: [PATCH] refactor additionalInfo logic --- src/store/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index b6004dd4..76669828 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -528,8 +528,10 @@ export const useMainStore = defineStore({ schoolProperty: '', parkingLot: '' }; - if (endorsementAnswersForPayload.includes(endorsementOptions.EDUCATOR && endorsementOptions.PARKING_GUARD)) { + if (endorsementAnswersForPayload.includes(endorsementOptions.EDUCATOR)) { endorsementsAdditionalInfo.schoolProperty = 'Yes'; + } + if (endorsementAnswersForPayload.includes(endorsementOptions.PARKING_GUARD)) { endorsementsAdditionalInfo.parkingLot = 'Yes'; }