From 5ab3a91fdbe773c308098426e95f1ba85f249f8c Mon Sep 17 00:00:00 2001 From: b1ek Date: Sun, 7 May 2023 16:41:58 +1000 Subject: [PATCH] display studio apartments correctly --- .../src/components/CardApartament/CardApartament.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pairent_frontend_react/src/components/CardApartament/CardApartament.jsx b/pairent_frontend_react/src/components/CardApartament/CardApartament.jsx index 761170e..6586e83 100644 --- a/pairent_frontend_react/src/components/CardApartament/CardApartament.jsx +++ b/pairent_frontend_react/src/components/CardApartament/CardApartament.jsx @@ -25,7 +25,13 @@ const CardApartament = function (props) {
-

{props.results.perimetrs} м², {props.results.rooms}{props.results.rooms > 1 ? "-х комнатная" : " комнатная"}

+

{props.results.perimetrs} м², {props.results.rooms == 0 ? '' : props.results.rooms} + + {props.results.rooms == 0 ? 'Гостинка' : + (props.results.rooms > 1 ? "-х комнатная" : " комнатная") + } + +

{props.results.address}, {props.results.floor} этаж из {props.results.floorHouse}