Changes to allow cost savings show up in secondary text

This commit is contained in:
scottkiener-at-safelite 2026-01-16 08:13:01 -05:00
parent 947d56c47b
commit 20c88dcbd3

View file

@ -226,11 +226,6 @@ export default {
},
computed: {
coverageStatementSubHeader() {
console.log('coverageStatementSubHeader', this.widget.subheader);
console.log('getTextFromCmsWithCustomIfStatements', this.getTextFromCmsWithCustomIfStatements(
this.widget.subheader,
widgetFields.SUB_HEADER_WIDGET.SUB_HEADER_TEXT
));
return this.getTextFromCmsWithCustomIfStatements(
this.widget.subheader,
widgetFields.SUB_HEADER_WIDGET.SUB_HEADER_TEXT
@ -254,9 +249,14 @@ export default {
);
},
secondaryText() {
const itacCostSavings =
this.deductibleValue - this.totalServicePrice;
return this.getTextFromCmsWithCustomIfStatements(
this.widget.subheader,
widgetFields.SUB_HEADER_WIDGET.SECONDARY_TEXT
)?.replaceAll(
'{custom:costSavings}',
formatAmountInDollars(itacCostSavings)
);
},
disclaimerText() {