fix: corrige un schéma du Panier
This commit is contained in:
parent
8bcb09f1ff
commit
012350d41e
1 changed files with 1 additions and 1 deletions
|
|
@ -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()]),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue