mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
Fix unknown country display on realtime page.
This commit is contained in:
parent
f7201c9cfc
commit
50bc2371b8
@ -129,7 +129,12 @@ export default function RealtimeLog({ data, websites, websiteId }) {
|
|||||||
id="message.log.visitor"
|
id="message.log.visitor"
|
||||||
defaultMessage="Visitor from {country} using {browser} on {os} {device}"
|
defaultMessage="Visitor from {country} using {browser} on {os} {device}"
|
||||||
values={{
|
values={{
|
||||||
country: <b>{countryNames[country]}</b>,
|
country: (
|
||||||
|
<b>
|
||||||
|
{countryNames[country] ||
|
||||||
|
intl.formatMessage({ id: 'label.unknown', defaultMessage: 'Unknown' })}
|
||||||
|
</b>
|
||||||
|
),
|
||||||
browser: <b>{BROWSERS[browser]}</b>,
|
browser: <b>{BROWSERS[browser]}</b>,
|
||||||
os: <b>{os}</b>,
|
os: <b>{os}</b>,
|
||||||
device: <b>{intl.formatMessage(devices[device])?.toLowerCase()}</b>,
|
device: <b>{intl.formatMessage(devices[device])?.toLowerCase()}</b>,
|
||||||
|
Loading…
Reference in New Issue
Block a user