CSR-1977: update copy in promotions-helper
This commit is contained in:
parent
8b7c319705
commit
900f790271
1 changed files with 8 additions and 8 deletions
|
|
@ -331,10 +331,10 @@ export function getNewlyInactivatedPromos(oldInactivePromos, newInactivePromos)
|
|||
|
||||
export function createPromoSuccessAlert(promoCode) {
|
||||
return {
|
||||
messageHeadline: "Promo applied!",
|
||||
messageCopy: `Promo "${getPromoCodeWithoutBundleIdentifier(
|
||||
messageHeadline: "Promo code applied!",
|
||||
messageCopy: `Promo code ${getPromoCodeWithoutBundleIdentifier(
|
||||
promoCode.toUpperCase()
|
||||
)}" was successfully applied to your cart.`,
|
||||
)} was successfully applied to your cart.`,
|
||||
type: "alert-success",
|
||||
isDismissible: true,
|
||||
shouldAutoFade: true,
|
||||
|
|
@ -343,19 +343,19 @@ export function createPromoSuccessAlert(promoCode) {
|
|||
|
||||
export function createPromoErrorAlert(promoCode, errorCode = null, additionalInfo) {
|
||||
const alert = {
|
||||
messageHeadline: "Promo error",
|
||||
messageHeadline: "Promo code error",
|
||||
type: "alert-danger",
|
||||
shouldAutoFade: false,
|
||||
isDismissible: true,
|
||||
};
|
||||
if (stackingPromoErrorCodes.includes(errorCode)) {
|
||||
alert.messageCopy = `Sorry, promo code "${getPromoCodeWithoutBundleIdentifier(
|
||||
alert.messageCopy = `Sorry, promo code ${getPromoCodeWithoutBundleIdentifier(
|
||||
promoCode.toUpperCase()
|
||||
)}" cannot be combined with "${additionalInfo[0].toUpperCase()}"`;
|
||||
)} cannot be combined with ${additionalInfo[0].toUpperCase()}`;
|
||||
} else {
|
||||
alert.messageCopy = `Sorry, promo code "${getPromoCodeWithoutBundleIdentifier(
|
||||
alert.messageCopy = `Sorry, promo code ${getPromoCodeWithoutBundleIdentifier(
|
||||
promoCode.toUpperCase()
|
||||
)}" is not valid`;
|
||||
)} is not valid`;
|
||||
}
|
||||
return alert;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue