fix: corrige un schéma du Panier

This commit is contained in:
gcch 2025-06-23 15:52:37 +02:00
commit 012350d41e

View file

@ -69,7 +69,7 @@ export const WCStoreCartTotalsSchema = v.object({
v.transform(Number),
),
total_shipping: v.pipe(
v.union([v.string(), v.number()]),
v.union([v.string(), v.number(), v.null()]),
v.transform(n => n ? Number(n) : 0),
),
total_shipping_tax: v.union([v.string(), v.null()]),