From e2d39f6b822f6cd4d507d198d31f04154e635964 Mon Sep 17 00:00:00 2001 From: Sneha Date: Mon, 27 Nov 2023 17:16:21 +0530 Subject: [PATCH] Invalid error message --- .../promo-modal-question/promo-modal-question.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/layouts/payment-method/promo-modal-question/promo-modal-question.vue b/src/layouts/payment-method/promo-modal-question/promo-modal-question.vue index 120e88292..b8ee8ad87 100644 --- a/src/layouts/payment-method/promo-modal-question/promo-modal-question.vue +++ b/src/layouts/payment-method/promo-modal-question/promo-modal-question.vue @@ -229,7 +229,13 @@ export default { ); return (this.displayInShopPromoAlert = true); } - break; + else{ + this.errorMessage = this.PromoText?.replaceAll( + "{custom:PROMOCODE}", + this.promoCode.toUpperCase() + ); + return (this.displayInvalidPromoAlert = true); + } default: this.errorMessage = this.PromoText?.replaceAll( "{custom:PROMOCODE}",