1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00

(bug) app always check coupon code in admin panier if change item quantity

This commit is contained in:
Du Peng 2022-10-04 16:51:38 +02:00
parent ccd15d45b2
commit 162c56eb46

View File

@ -33,7 +33,7 @@ export const CouponInput: React.FC<CouponInputProps> = ({ user, amount, onChange
if (user && code) {
handleChange(code);
}
}, [user]);
}, [user?.id]);
useEffect(() => {
if (code) {