From d86ee96a0d8889ae01dcbbd9026fa2b33fe26733 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sun, 6 Dec 2020 00:19:25 -0800 Subject: [PATCH] Show a dash when geoip data is not available in the admin. Closes https://github.com/owncast/owncast/issues/427 --- web/pages/viewer-info.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pages/viewer-info.tsx b/web/pages/viewer-info.tsx index 517c0a1f8..a264ca5b6 100644 --- a/web/pages/viewer-info.tsx +++ b/web/pages/viewer-info.tsx @@ -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}` : '-', }, ];