Changes to allow cost savings show up in secondary text
This commit is contained in:
parent
947d56c47b
commit
20c88dcbd3
1 changed files with 5 additions and 5 deletions
|
|
@ -226,11 +226,6 @@ export default {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
coverageStatementSubHeader() {
|
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(
|
return this.getTextFromCmsWithCustomIfStatements(
|
||||||
this.widget.subheader,
|
this.widget.subheader,
|
||||||
widgetFields.SUB_HEADER_WIDGET.SUB_HEADER_TEXT
|
widgetFields.SUB_HEADER_WIDGET.SUB_HEADER_TEXT
|
||||||
|
|
@ -254,9 +249,14 @@ export default {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
secondaryText() {
|
secondaryText() {
|
||||||
|
const itacCostSavings =
|
||||||
|
this.deductibleValue - this.totalServicePrice;
|
||||||
return this.getTextFromCmsWithCustomIfStatements(
|
return this.getTextFromCmsWithCustomIfStatements(
|
||||||
this.widget.subheader,
|
this.widget.subheader,
|
||||||
widgetFields.SUB_HEADER_WIDGET.SECONDARY_TEXT
|
widgetFields.SUB_HEADER_WIDGET.SECONDARY_TEXT
|
||||||
|
)?.replaceAll(
|
||||||
|
'{custom:costSavings}',
|
||||||
|
formatAmountInDollars(itacCostSavings)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
disclaimerText() {
|
disclaimerText() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue