commit
4be89c2709
1 changed files with 2 additions and 2 deletions
|
|
@ -104,7 +104,7 @@ export default {
|
||||||
return this.PromoOnOrderText?.replaceAll(
|
return this.PromoOnOrderText?.replaceAll(
|
||||||
"{custom:NEWPROMOCODE}",
|
"{custom:NEWPROMOCODE}",
|
||||||
this.promoCode.toUpperCase()
|
this.promoCode.toUpperCase()
|
||||||
).replaceAll("{custom:OLDPROMOCODE}", this.getPromoCode().toUpperCase());
|
).replaceAll("{custom:OLDPROMOCODE}", this.getPromoCode()?.toUpperCase());
|
||||||
},
|
},
|
||||||
PromoText() {
|
PromoText() {
|
||||||
return this.getCmsContent("AlertInvalidPromoWidget", "HeadlineText");
|
return this.getCmsContent("AlertInvalidPromoWidget", "HeadlineText");
|
||||||
|
|
@ -131,7 +131,7 @@ export default {
|
||||||
return promosToDisplay;
|
return promosToDisplay;
|
||||||
},
|
},
|
||||||
getPromoCode() {
|
getPromoCode() {
|
||||||
return this.lineItems.promos?.[0].promoCode;
|
return this.lineItems.promos?.[0]?.promoCode;
|
||||||
},
|
},
|
||||||
onInputIdAssigned(inputId) {
|
onInputIdAssigned(inputId) {
|
||||||
this.promoTextInputId = inputId;
|
this.promoTextInputId = inputId;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue