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:
parent
ccd15d45b2
commit
162c56eb46
@ -33,7 +33,7 @@ export const CouponInput: React.FC<CouponInputProps> = ({ user, amount, onChange
|
||||
if (user && code) {
|
||||
handleChange(code);
|
||||
}
|
||||
}, [user]);
|
||||
}, [user?.id]);
|
||||
|
||||
useEffect(() => {
|
||||
if (code) {
|
||||
|
Loading…
Reference in New Issue
Block a user