correjida logica del filtrarImagenes
This commit is contained in:
1 parent
4bd67e2b50
commit
cb22223d7c
1 file changed
+1
-2
+1
-2
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user