some editing

This commit is contained in:
yotakii
2026-03-25 12:04:27 +03:00
parent ba33072d95
commit 3fd62ba0ad
7 changed files with 18 additions and 7 deletions

View File

@@ -102,7 +102,7 @@ function TendersContent() {
if (!formData.title?.trim()) errors.title = t('common.required')
if (!formData.announcementDate) errors.announcementDate = t('common.required')
if (!formData.closingDate) errors.closingDate = t('common.required')
if (Number(formData.termsValue) < 0) errors.termsValue = t('common.required')
//if (Number(formData.termsValue) < 0) errors.termsValue = t('common.required')
if (Number(formData.bondValue) < 0) errors.bondValue = t('common.required')
setFormErrors(errors)
if (Object.keys(errors).length > 0) return
@@ -317,7 +317,6 @@ function TendersContent() {
<label className="block text-sm font-medium text-gray-700 mb-1">{t('tenders.termsValue')} *</label>
<input
type="number"
min={0}
value={formData.termsValue || ''}
onChange={(e) => setFormData({ ...formData, termsValue: Number(e.target.value) || 0 })}
className="w-full px-3 py-2 border rounded-lg"