This commit is contained in:
2025-12-25 23:39:12 -03:00
parent 4ebbc048f1
commit e7aa6a6694
4 changed files with 34 additions and 15 deletions

View File

@@ -21,7 +21,7 @@ type ReviewProps = {
export function Review({ state }: ReviewProps) {
const wizard = useWizard()
const { coupon, items } = state.cart || { items: [], coupon: {} }
const { coupon, items } = state || { items: [], coupon: {} }
const subtotal =
items?.reduce(
(acc, { course, quantity }) =>