From 075789b9024ea3fc8d679725d0ad095f977d93d8 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 12 Jan 2025 15:19:12 +0100 Subject: [PATCH] fix showing Active in NTP --- interface/src/app/status/Status.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/interface/src/app/status/Status.tsx b/interface/src/app/status/Status.tsx index e8a6447d5..97613c837 100644 --- a/interface/src/app/status/Status.tsx +++ b/interface/src/app/status/Status.tsx @@ -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(); }