Merge pull request #1887 from Safelite/feature/CSR-2123

Corrected logic for whether to display PIA message
This commit is contained in:
Leah Schumann 2024-06-26 11:40:58 -04:00 committed by GitHub
commit 2af25727d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,7 +51,7 @@
validationRules="option-required" />
<alert
v-if="isPiaDisabled"
v-if="!isPiaDisabled"
:isDismissible="false"
alertClass="alert-info"
cmsWidgetName="NoPiaDisclaimerWidget"
@ -577,7 +577,7 @@ export default {
var isEnabled = false;
if (this.isInsurance) {
isEnabled = piaInsurance === "true" && this.currentDeductible !== 0;
isEnabled = piaInsurance === "true" && this.currentDeductible > 0;
} else {
isEnabled = piaExperience === "PIA Optional" || piaExperience === "PIA Required";
}