validacion de categorias ahora es case insensitive

This commit is contained in:
Eduardo Quiros 2021-07-11 23:32:45 -06:00
parent fe714b9eaa
commit d2b529d371
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ export class CategoriaUpdateComponent implements OnInit {
protected categoryExists(categoria: ICategoria): boolean {
this.loadAll();
var condicion = this.categorias!.some(cat => cat.nombre === categoria.nombre);
var condicion = this.categorias!.some(cat => cat.nombre!.toLowerCase() === categoria.nombre!.toLowerCase());
return condicion;
}