northwind/checkout
Skip a coupon the discount table does not know
src/checkout/total.ts
- return subtotal * (1 - discount.percentage / 100);+ if (!discount) return subtotal;+ return subtotal * (1 - discount.percentage / 100);
- Read the visit
- Fix the code
- Open the pull request
- You review it