correjida logica del filtrarImagenes

This commit is contained in:
2025-12-08 15:11:10 -03:00
parent 4bd67e2b50
commit cb22223d7c

View File

@@ -17,8 +17,7 @@ export function filtrarImagen(file: File) {
const allowed = ['image/png', 'image/jpg', 'image/jpeg', 'image/gif', 'image/webp'];
if (allowed.includes(file.type)) {
return file;
} else{
return null;
}
}
return null;
}