Added Polish language. Bug fixes.

This commit is contained in:
Mike Cao 2020-11-06 17:30:21 -08:00
parent f3b8e4654f
commit b97f582c90
5 changed files with 11 additions and 5 deletions

View file

@ -88,7 +88,7 @@ export default function RealtimeLog({ data, websites }) {
}
function getWebsite({ website_id }) {
return websites.find(n => n.website_id === website_id)?.name;
return websites.find(n => n.website_id === website_id);
}
function getDetail({
@ -111,7 +111,7 @@ export default function RealtimeLog({ data, websites }) {
);
}
if (view_id) {
const domain = getWebsite({ website_id });
const domain = getWebsite({ website_id })?.domain;
return (
<a
className={styles.link}
@ -161,7 +161,7 @@ export default function RealtimeLog({ data, websites }) {
<Icon className={styles.icon} icon={getIcon(row)} />
{getDetail(row)}
</div>
<div className={styles.website}>{getWebsite(row)}</div>
{websites.length > 0 && <div className={styles.website}>{getWebsite(row)?.domain}</div>}
</div>
);
};