diff --git a/packages/admin/dashboard/src/routes/price-lists/common/schemas.ts b/packages/admin/dashboard/src/routes/price-lists/common/schemas.ts index 344e43eb88..755c14add1 100644 --- a/packages/admin/dashboard/src/routes/price-lists/common/schemas.ts +++ b/packages/admin/dashboard/src/routes/price-lists/common/schemas.ts @@ -14,7 +14,7 @@ export const PriceListRulesSchema = z.object({ }) const PriceListCreateCurrencyPriceSchema = z.object({ - amount: z.string().optional(), + amount: z.string().or(z.number()).optional(), }) export type PriceListCreateCurrencyPrice = z.infer< @@ -22,7 +22,7 @@ export type PriceListCreateCurrencyPrice = z.infer< > const PriceListCreateRegionPriceSchema = z.object({ - amount: z.string().optional(), + amount: z.string().or(z.number()).optional(), }) export type PriceListCreateRegionPriceSchema = z.infer<