Skip to content

Commit

Permalink
🦋 Change max quantity of article by order #1567
Browse files Browse the repository at this point in the history
  • Loading branch information
ithiame committed Nov 21, 2024
1 parent acb6a6c commit d4cab2c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/lib/components/ProductForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,6 @@
placeholder="Max quantity per order"
step="1"
min="1"
max="99"
value={product.maxQuantityPerOrder || DEFAULT_MAX_QUANTITY_PER_ORDER}
/>
</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit d4cab2c

Please sign in to comment.