Hydra
Bug library · coupon · math

Coupon ignored

The coupon banner says the code applied, but the quote is computed without it.

Breaks: main, holdout · expected from Kane: caught · The main spec asserts the Discount row and the discounted total.

The diff

components/Checkout.tsx
- const quote = useMemo(() => computeQuote(lines, coupon), [lines, coupon]);
+ const quote = useMemo(() => computeQuote(lines, null), [lines, coupon]);

Matches

No recorded match has planted this bug yet.