SSR-1183 Comments around confusing logic

This commit is contained in:
Josh Dassinger 2024-06-17 13:33:00 -05:00
parent 63a6d9026c
commit 5aeccca959

View file

@ -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);
}