Show address location, not reporter location, in the status page

This commit is contained in:
Eli Ribble 2026-04-14 15:46:52 +00:00
parent 59e58840c9
commit 4a28a16639
No known key found for this signature in database

View file

@ -173,13 +173,20 @@ const district = computedAsync(async (): Promise<District | undefined> => {
return await storeDistrict.byURI(report.value.district);
});
const markers = computed((): Marker[] => {
if (!(report.value && report.value.location)) {
if (
!(
report.value &&
report.value.address.location &&
(report.value.address.location.latitude ||
report.value.address.location.longitude)
)
) {
return [];
}
return [
{
id: props.id,
location: report.value.location,
location: report.value.address.location,
},
];
});