From 5aeccca9590500875d8fac4e6c241f086abc901f Mon Sep 17 00:00:00 2001 From: Josh Dassinger Date: Mon, 17 Jun 2024 13:33:00 -0500 Subject: [PATCH] SSR-1183 Comments around confusing logic --- src/store/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/store/index.js b/src/store/index.js index aa8ccb1b..17ef3231 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1138,8 +1138,10 @@ export const useMainStore = defineStore({ } if (isItac) { + // if the ITAC Pricing API call returns isItac = true then we should switch to ITAC coverage type this.updateCoverageType(coverageType.ITAC); } else if (this.isITAC) { + // If the ITAC pricing API call returns isItac = false, and we are currently ITAC in the store then we should switch to deductible coverage type this.updateCoverageType(coverageType.Deductible); }