Clean up API client - use nested propertyInformation directly
All checks were successful
Build frontend / build (push) Successful in 42s

- Removed manual enrichment calls (Properties/Get fallback no longer needed)
- Removed unused hasNestedInfo variables
- API now returns propertyInformation nested in RentProperties/SaleProperties
This commit is contained in:
Claw AI
2026-03-26 23:27:28 +00:00
parent fd3dcf4cc3
commit 211ac42ad9
4 changed files with 9 additions and 62 deletions

View File

@ -36,7 +36,6 @@ import { getRentProperties, getSaleProperties } from '../utils/api';
// Map API data to UI format
function mapApiProperty(item, index) {
const info = item.propertyInformation || {};
const hasNestedInfo = !!item.propertyInformation;
const dailyPrice = item.dailyRent ?? item.monthlyRent ?? item.price ?? 0;
const monthlyPrice = item.monthlyRent ?? 0;