formatting

This commit is contained in:
proddy
2024-12-31 13:05:59 +01:00
parent a4db3ef5c4
commit 83724e3d44
3 changed files with 23 additions and 14 deletions

View File

@@ -139,7 +139,9 @@ 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();
}