diff --git a/src/app/(admin)/atc24$rw/admin/components/ReviewForm.tsx b/src/app/(admin)/atc24$rw/admin/components/ReviewForm.tsx index 9f46201..3646298 100644 --- a/src/app/(admin)/atc24$rw/admin/components/ReviewForm.tsx +++ b/src/app/(admin)/atc24$rw/admin/components/ReviewForm.tsx @@ -61,6 +61,10 @@ export const ReviewForm = ({ review }: ReviewFormProps) => { values: z.infer, token: string ) => { + if(!acceptedFiles[0]){ + return toast.error("Debes seleccionar una imagen"); + }; + const formData: FormData = createFormData({ ...values, file: acceptedFiles[0],