From e1204bf69e0c0096b5fa938a987fc0a56e1e5120 Mon Sep 17 00:00:00 2001 From: mouazkh Date: Tue, 26 May 2026 21:54:22 +0300 Subject: [PATCH] added the descption --- app/reservations/page.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/reservations/page.js b/app/reservations/page.js index e90a27a..8ca985f 100644 --- a/app/reservations/page.js +++ b/app/reservations/page.js @@ -41,7 +41,9 @@ async function enrich(reservation) { if (!reservation.propertyId) return reservation; try { const prop = await getRentProperty(reservation.propertyId); - reservation._prop = prop?.propertyInformation ?? prop ?? null; + const info = prop?.propertyInformation ?? prop ?? {}; + if (prop?.allowedPaymentPeriod) info.allowedPaymentPeriod = prop.allowedPaymentPeriod; + reservation._prop = info; } catch { /* skip */ } return reservation; }