Bug library · coupon · math
Fixed-amount coupon broken
Fixed-amount coupons are divided by 100 a second time, so HOLIDAY5 takes off 5 cents.
The diff
lib/coupons.ts- : coupon.amountCents;+ : Math.round(coupon.amountCents / 100);
Fixed-amount coupons are divided by 100 a second time, so HOLIDAY5 takes off 5 cents.
lib/coupons.ts- : coupon.amountCents;+ : Math.round(coupon.amountCents / 100);