update orders
This commit is contained in:
@@ -59,7 +59,7 @@ export const useWizardStore = create<WizardStore>()(
|
||||
const subtotal = items.reduce(
|
||||
(acc, { course, quantity }) =>
|
||||
acc +
|
||||
(course?.unit_price || 0) *
|
||||
(course.unit_price || 0) *
|
||||
(Number.isFinite(quantity) && quantity > 0 ? quantity : 1),
|
||||
0
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user