Show a dash when geoip data is not available in the admin. Closes https://github.com/owncast/owncast/issues/427

This commit is contained in:
Gabe Kangas 2020-12-06 00:19:25 -08:00
parent 9908896bfd
commit d86ee96a0d

View File

@ -96,7 +96,7 @@ export default function ViewersOverTime() {
title: "Location",
dataIndex: "geo",
key: "geo",
render: (geo) => geo && `${geo.regionName}, ${geo.countryCode}`,
render: (geo) => geo ? `${geo.regionName}, ${geo.countryCode}` : '-',
},
];