From c685ee8dd304b53c54b3661c2dc96f470af25737 Mon Sep 17 00:00:00 2001 From: Alberto Duarte Delgado Date: Tue, 21 Apr 2026 12:22:35 +0100 Subject: feat(offices): restaurar filtro de favoritos fixes #14 --- src/app/(protected)/offices/[officeId].tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/app/(protected)/offices') diff --git a/src/app/(protected)/offices/[officeId].tsx b/src/app/(protected)/offices/[officeId].tsx index fbcd9f8..caedb05 100644 --- a/src/app/(protected)/offices/[officeId].tsx +++ b/src/app/(protected)/offices/[officeId].tsx @@ -45,7 +45,7 @@ export default function OfficeDetailScreen() { Reintentar - + Volver @@ -55,12 +55,13 @@ export default function OfficeDetailScreen() { } const isFav = favoriteOfficeIdsSet.has(office.id); + const isAvailable = office.available ?? true; return ( {/* HEADER */} - + ← Volver a espacios @@ -90,16 +91,16 @@ export default function OfficeDetailScreen() { - {office.available ? 'Disponible' : 'Ocupado'} + {isAvailable ? 'Disponible' : 'Ocupado'} @@ -321,4 +322,4 @@ const styles = StyleSheet.create({ padding: theme.spacing.md, borderRadius: theme.radius.md, }, -}); \ No newline at end of file +}); -- cgit v1.2.3-54-g00ecf