fix(dashboard): prices validation in PL bulk editor (#9245)
**What** - fix validation errors in bulk editor on Price List create flow --- FIXES CC-511
This commit is contained in:
@@ -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<
|
||||
|
||||
Reference in New Issue
Block a user