From 3aff04bf4a9128b4675700cf210cbafceecf01a2 Mon Sep 17 00:00:00 2001 From: nflnkr <105123049+nflnkr@users.noreply.github.com> Date: Thu, 26 Oct 2023 13:53:14 +0300 Subject: [PATCH] fix nko discount applying to non-nko user --- lib/utils/cart/loyaltyDiscount.ts | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/utils/cart/loyaltyDiscount.ts b/lib/utils/cart/loyaltyDiscount.ts index 51346a2..f3e0726 100644 --- a/lib/utils/cart/loyaltyDiscount.ts +++ b/lib/utils/cart/loyaltyDiscount.ts @@ -22,6 +22,7 @@ export function findLoyaltyDiscount( const applicableDiscounts = discounts.filter(discount => { return ( discount.Layer === 4 && + discount.Condition.UserType !== "nko" && purchasesAmount >= discount.Condition.PurchasesAmount ); }); diff --git a/package.json b/package.json index ce86af0..bcd950f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@frontend/kitui", - "version": "1.0.53", + "version": "1.0.54", "description": "test", "main": "./dist/index.js", "module": "./dist/index.js",