From f925af027276d3f697e4ef1a0a973e309a7e1e02 Mon Sep 17 00:00:00 2001 From: Claw AI Date: Sun, 5 Apr 2026 18:46:47 +0000 Subject: [PATCH] fix: access property via propertyInformation nested object --- app/owner/reservations/page.js | 2 +- app/reservations/page.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/owner/reservations/page.js b/app/owner/reservations/page.js index 1cf4b2c..1af5ac4 100644 --- a/app/owner/reservations/page.js +++ b/app/owner/reservations/page.js @@ -276,7 +276,7 @@ export default function OwnerReservationRequestsPage() { if (!r.property && r.propertyId) { try { const propRes = await getRentProperty(r.propertyId); - r.property = propRes?.data || propRes || null; + r.property = propRes?.data?.propertyInformation || propRes?.data || propRes || null; } catch (e) { console.warn('Failed to load property', r.propertyId); } diff --git a/app/reservations/page.js b/app/reservations/page.js index f2cd398..7686e65 100644 --- a/app/reservations/page.js +++ b/app/reservations/page.js @@ -236,7 +236,7 @@ export default function UserReservationsPage() { if (!r.property && r.propertyId) { try { const propRes = await getRentProperty(r.propertyId); - r.property = propRes?.data || propRes || null; + r.property = propRes?.data?.propertyInformation || propRes?.data || propRes || null; } catch (e) { console.warn('Failed to load property', r.propertyId); }