Optional access of optional property

This commit is contained in:
Johannes Klein
2025-03-11 10:31:04 +01:00
parent 7bf26278e5
commit 027e08d90e

View File

@@ -66,13 +66,13 @@ const LocationSection = ( {
/>
</View>
)}
{observation.obscured && (
{observation?.obscured && (
<ObscurationExplanation
textClassName="mt-[10px]"
observation={observation}
currentUser={currentUser}
/>
) }
)}
</View>
</View>
);