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