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:
Frane Polić authored and GitHub committed 2024-09-23 09:07:51 +00:00
1 parent 5d16133a93
commit d0f1028820
1 file changed
+2 -2
@@ -14,7 +14,7 @@ export const PriceListRulesSchema = z.object({
}) })
const PriceListCreateCurrencyPriceSchema = z.object({ const PriceListCreateCurrencyPriceSchema = z.object({
amount: z.string().optional(), amount: z.string().or(z.number()).optional(),
}) })
export type PriceListCreateCurrencyPrice = z.infer< export type PriceListCreateCurrencyPrice = z.infer<
@@ -22,7 +22,7 @@ export type PriceListCreateCurrencyPrice = z.infer<
> >
const PriceListCreateRegionPriceSchema = z.object({ const PriceListCreateRegionPriceSchema = z.object({
amount: z.string().optional(), amount: z.string().or(z.number()).optional(),
}) })
export type PriceListCreateRegionPriceSchema = z.infer< export type PriceListCreateRegionPriceSchema = z.infer<