Fix wan display for service widget

This commit is contained in:
Michael Shamoon committed 2022-10-19 20:47:27 -07:00
1 parent 94f9ef3c30
commit 203783953d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ export default function Component({ service }) {
return (
<Container service={service}>
{uptime && <Block label="unifi.uptime" value={ uptime } />}
{wan.show && <Block label="unifi.wan" value={ wan.up ? t("unifi.up") : t("unifi.down") } />}
{wan.show && <Block label="unifi.wan" value={ wan.status === "ok" ? t("unifi.up") : t("unifi.down") } />}
{lan.show && <Block label="unifi.lan_users" value={ t("common.number", { value: lan.num_user }) } />}
{lan.show && !wlan.show && <Block label="unifi.lan_devices" value={ t("common.number", { value: lan.num_adopted }) } />}