From d4cab2ccdeb21059cbabf22d0286e21a5062a87a Mon Sep 17 00:00:00 2001 From: ithiame Date: Thu, 21 Nov 2024 11:32:20 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=8B=20Change=20max=20quantity=20of=20a?= =?UTF-8?q?rticle=20by=20order=20#1567?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/components/ProductForm.svelte | 1 - .../(app)/admin[[hash=admin_hash]]/product/product-schema.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/components/ProductForm.svelte b/src/lib/components/ProductForm.svelte index a2ea3314b..c34e9dee1 100644 --- a/src/lib/components/ProductForm.svelte +++ b/src/lib/components/ProductForm.svelte @@ -768,7 +768,6 @@ placeholder="Max quantity per order" step="1" min="1" - max="99" value={product.maxQuantityPerOrder || DEFAULT_MAX_QUANTITY_PER_ORDER} /> diff --git a/src/routes/(app)/admin[[hash=admin_hash]]/product/product-schema.ts b/src/routes/(app)/admin[[hash=admin_hash]]/product/product-schema.ts index 209f093ad..a507d7f00 100644 --- a/src/routes/(app)/admin[[hash=admin_hash]]/product/product-schema.ts +++ b/src/routes/(app)/admin[[hash=admin_hash]]/product/product-schema.ts @@ -37,7 +37,7 @@ export const productBaseSchema = () => ({ standalone: z.boolean({ coerce: true }).default(false), free: z.boolean({ coerce: true }).default(false), stock: z.number({ coerce: true }).int().min(0).optional(), - maxQuantityPerOrder: z.number({ coerce: true }).int().min(1).max(99).optional(), + maxQuantityPerOrder: z.number({ coerce: true }).int().min(1).optional(), eshopVisible: z.boolean({ coerce: true }).default(false), retailVisible: z.boolean({ coerce: true }).default(false), nostrVisible: z.boolean({ coerce: true }).default(false),