diff options
Diffstat (limited to 'modern/src/settings/MaintenancesPage.jsx')
-rw-r--r-- | modern/src/settings/MaintenancesPage.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/settings/MaintenancesPage.jsx b/modern/src/settings/MaintenancesPage.jsx index 9170f9ee..9241eb3e 100644 --- a/modern/src/settings/MaintenancesPage.jsx +++ b/modern/src/settings/MaintenancesPage.jsx @@ -48,10 +48,10 @@ const MaintenacesPage = () => { if (key.endsWith('Time')) { if (start) { return dayjs(value).locale('en').format('YYYY-MM-DD'); - } else { - return `${value / 86400000} ${t('sharedDays')}`; } - } else if (attribute && attribute.dataType) { + return `${value / 86400000} ${t('sharedDays')}`; + } + if (attribute && attribute.dataType) { switch (attribute.dataType) { case 'speed': return formatSpeed(value, speedUnit, t); |