From 162c56eb46fd6f4bc33e057e5614a591325f3620 Mon Sep 17 00:00:00 2001 From: Du Peng Date: Tue, 4 Oct 2022 16:51:38 +0200 Subject: [PATCH] (bug) app always check coupon code in admin panier if change item quantity --- app/frontend/src/javascript/components/coupon/coupon-input.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/frontend/src/javascript/components/coupon/coupon-input.tsx b/app/frontend/src/javascript/components/coupon/coupon-input.tsx index f1cbb8823..427f14998 100644 --- a/app/frontend/src/javascript/components/coupon/coupon-input.tsx +++ b/app/frontend/src/javascript/components/coupon/coupon-input.tsx @@ -33,7 +33,7 @@ export const CouponInput: React.FC = ({ user, amount, onChange if (user && code) { handleChange(code); } - }, [user]); + }, [user?.id]); useEffect(() => { if (code) {