@wikala/spmkt 2.29.1 → 2.29.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -285,7 +285,10 @@ export default {
285
285
  if(variantDiscountInfo.coupon_applied) {
286
286
  discountMessageContainer.textContent = `U korpi će vam biti obračunat popust od ${this.formatMoney(variantDiscountInfo.discount_amount)} RSD`
287
287
  } else {
288
- discountMessageContainer.textContent = `Iskoristi promo kod ${variantDiscountInfo.coupon_code} za popust od ${this.formatMoney(variantDiscountInfo.discount_amount)} RSD`
288
+ if(variantDiscountInfo.description.trim() !== '') {
289
+ discountMessageContainer.innerHTML = `<p>${variantDiscountInfo.description}</p><hr>`
290
+ }
291
+ discountMessageContainer.innerHTML += `Iskoristi promo kod ${variantDiscountInfo.coupon_code} za popust od ${this.formatMoney(variantDiscountInfo.discount_amount)} RSD`
289
292
  }
290
293
  }
291
294
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikala/spmkt",
3
- "version": "2.29.1",
3
+ "version": "2.29.2",
4
4
  "private": false,
5
5
  "description": "supermarket",
6
6
  "scripts": {