display studio apartments correctly

This commit is contained in:
b1ek 2023-05-07 16:41:58 +10:00
parent f728f0c4cd
commit 5ab3a91fdb
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 7 additions and 1 deletions

View File

@ -25,7 +25,13 @@ const CardApartament = function (props) {
<div className="apartmentSectionLeft">
<img src="/images/apartment.png"></img>
<div className="characteristics">
<h3>{props.results.perimetrs} м², {props.results.rooms}{props.results.rooms > 1 ? "-х комнатная" : " комнатная"}</h3>
<h3>{props.results.perimetrs} м², {props.results.rooms == 0 ? '' : props.results.rooms}
{props.results.rooms == 0 ? 'Гостинка' :
(props.results.rooms > 1 ? "-х комнатная" : " комнатная")
}
</h3>
<p className="address">{props.results.address}, {props.results.floor} этаж из {props.results.floorHouse}</p>
<div className="transport">
<div className="transportBas">