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: {
|
||||
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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue