vmi-virtual-memorial/vmi-wd-frontend / cbfc38f

Browse files

oops. resolve build errors

Authored by espadonne
SHA
cbfc38f0e1e41f9a2913bfaa04e89366016fc923
Parents
06ebec9
Tree
de2d8c0

1 changed file

StatusFile+-
M components/ContributionForm.tsx 2 2
components/ContributionForm.tsxmodified
@@ -222,7 +222,7 @@ export default function ContributionForm({ personId, personName, onSuccess }: Co
222222
                 rows={6}
223223
                 className="w-full px-3 py-2 border border-gray-300 rounded focus:outline-none focus:border-vmi-gold"
224224
                 placeholder="Share any additional information about this person's service, life, or sacrifice..."
225
-                required={formData.content_type !== 'image'}
225
+                required={formData.content_type !== 'text'}
226226
               />
227227
               <p className="text-xs text-gray-500 mt-1">
228228
                 Please be respectful and accurate. All submissions are reviewed before publication.
@@ -242,7 +242,7 @@ export default function ContributionForm({ personId, personName, onSuccess }: Co
242242
                 accept="image/jpeg,image/png,image/gif,image/webp"
243243
                 onChange={handleImageChange}
244244
                 className="w-full px-3 py-2 border border-gray-300 rounded focus:outline-none focus:border-vmi-gold"
245
-                required={formData.content_type !== 'text'}
245
+                required={formData.content_type !== 'image'}
246246
               />
247247
               <p className="text-xs text-gray-500 mt-1">
248248
                 Max 10MB. Accepted formats: JPEG, PNG, GIF, WebP