diff --git a/src/fmg-components/cart/cart.vue b/src/fmg-components/cart/cart.vue
index 19e190f5f..01ebe64be 100644
--- a/src/fmg-components/cart/cart.vue
+++ b/src/fmg-components/cart/cart.vue
@@ -33,9 +33,10 @@
:key="i"
class="packaged-cart-item">
{{ cartItem.name
- }}
+ >{{
+ cartItem.name
+ }}
- Promo code {{ promoCode }} applied
+ Promo code {{ promoCode }} applied
+
@@ -919,6 +922,9 @@ export default {
&:last-child {
justify-content: flex-end;
}
+ &.promo {
+ text-transform: uppercase;
+ }
}
a {
font-size: 0.875rem;
@@ -1012,6 +1018,11 @@ export default {
padding: 2px 8px;
background-color: $green-100;
border-radius: 12px;
+
+ &.promo-code {
+ text-transform: uppercase;
+ padding: 0;
+ }
}
}
}
diff --git a/src/fmg-components/promo-modal-question/promo-modal-question.vue b/src/fmg-components/promo-modal-question/promo-modal-question.vue
index dd64321bb..7db0acc94 100644
--- a/src/fmg-components/promo-modal-question/promo-modal-question.vue
+++ b/src/fmg-components/promo-modal-question/promo-modal-question.vue
@@ -201,7 +201,7 @@ export default {
return {
isValid: !("errorCode" in promoValidationResponse),
- promoCode: promoValidationResponse?.orderPromos,
+ promoCode: promoValidationResponse?.orderPromos, // should be an array of promos
errorCode: promoValidationResponse?.errorCode,
additionalInfo: promoValidationResponse?.additionalInfo,
};
@@ -264,7 +264,7 @@ export default {
if (promoCodeData.isValid) {
if (this.taxPromos) {
const pricedLineItemsToTax = [];
- pricedLineItemsToTax.push(...promoCodeData.promoCode);
+ pricedLineItemsToTax.push(...promoCodeData.promoCode); // promoCodeData.promoCode should be an array
const taxedLineItems =
await baseMixin.methods.dispatchStoreActionWithLogging(
storeActions.TAX_ORDER_ITEMS_AND_SAVE_SERVER_DATA,