mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
fix showing Active in NTP
This commit is contained in:
@@ -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)
|
||||
? ' (' + formatDateTime(data.ntp_time) + ')'
|
||||
: '';
|
||||
return (
|
||||
LL.ACTIVE() +
|
||||
(data.ntp_time !== undefined
|
||||
? ' (' + formatDateTime(data.ntp_time) + ')'
|
||||
: '')
|
||||
);
|
||||
default:
|
||||
return LL.UNKNOWN();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user