🐛 fix: Add minimum value constraint for count and user limit inputs in CouponForm

This commit is contained in:
web 2025-09-16 04:33:42 -07:00
parent b8f630f8ab
commit 6991b69d40

View File

@ -307,6 +307,7 @@ export default function CouponForm<T extends Record<string, any>>({
<EnhancedInput
placeholder={t('form.countPlaceholder')}
type='number'
min={0}
step={1}
{...field}
onValueChange={(value) => {
@ -328,6 +329,7 @@ export default function CouponForm<T extends Record<string, any>>({
<EnhancedInput
placeholder={t('form.userLimitPlaceholder')}
type='number'
min={0}
step={1}
{...field}
onValueChange={(value) => {