diff --git a/app/resources/views/search.blade.php b/app/resources/views/search.blade.php index 3826cb2..55bdcd6 100644 --- a/app/resources/views/search.blade.php +++ b/app/resources/views/search.blade.php @@ -45,7 +45,7 @@ draw() { const tipo = this.unidad.proyecto_tipo_unidad.tipo_unidad.descripcion let unidad = tipo.charAt(0).toUpperCase() + tipo.slice(1) + ' ' + this.unidad.descripcion - if (this.venta !== null) { + if (typeof this.venta !== 'undefined') { unidad = this.venta.propiedad.tipologia } let precio = 0