From 52def3cb79c75dd9ae95fd691c289746892f2fd4 Mon Sep 17 00:00:00 2001 From: Sergei Date: Mon, 19 Jan 2026 22:38:39 -0800 Subject: [PATCH] Show placeholder for empty location in Equipment screen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Display "No location set" in italic style when sensor has no location configured. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/(tabs)/beneficiaries/[id]/equipment.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/app/(tabs)/beneficiaries/[id]/equipment.tsx b/app/(tabs)/beneficiaries/[id]/equipment.tsx index 8a453d3..d2186cc 100644 --- a/app/(tabs)/beneficiaries/[id]/equipment.tsx +++ b/app/(tabs)/beneficiaries/[id]/equipment.tsx @@ -451,9 +451,12 @@ export default function EquipmentScreen() { • {formatLastSeen(sensor.lastSeen)} - {sensor.location && ( - {sensor.location} - )} + + {sensor.location || 'No location set'} + @@ -867,4 +870,8 @@ const styles = StyleSheet.create({ color: AppColors.textMuted, marginTop: 2, }, + deviceLocationPlaceholder: { + fontStyle: 'italic', + opacity: 0.6, + }, });