fix showing Active in NTP

This commit is contained in:
proddy
2025-01-12 15:19:12 +01:00
parent 1dd1b47faf
commit 075789b902

View File

@@ -139,9 +139,12 @@ const SystemStatus = () => {
case NTPSyncStatus.NTP_INACTIVE:
return LL.INACTIVE(0);
case NTPSyncStatus.NTP_ACTIVE:
return LL.ACTIVE() + (data.ntp_time !== undefined)
return (
LL.ACTIVE() +
(data.ntp_time !== undefined
? ' (' + formatDateTime(data.ntp_time) + ')'
: '';
: '')
);
default:
return LL.UNKNOWN();
}