added the descption
All checks were successful
Build frontend / build (push) Successful in 44s

This commit is contained in:
mouazkh
2026-05-26 21:54:22 +03:00
parent a0a78079c5
commit e1204bf69e

View File

@ -41,7 +41,9 @@ async function enrich(reservation) {
if (!reservation.propertyId) return reservation; if (!reservation.propertyId) return reservation;
try { try {
const prop = await getRentProperty(reservation.propertyId); 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 */ } } catch { /* skip */ }
return reservation; return reservation;
} }