aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-24 08:26:29 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-24 08:26:29 -0700
commit568530fe2dd1413739a73eb0a576a90e764f14a6 (patch)
treeb8d92b9c8ba5e3dda149d4cf88a0eff1143e229b /modern/src
parent5e039612130c3c567fb50da9ce5f2e955787ac6e (diff)
downloadtrackermap-web-568530fe2dd1413739a73eb0a576a90e764f14a6.tar.gz
trackermap-web-568530fe2dd1413739a73eb0a576a90e764f14a6.tar.bz2
trackermap-web-568530fe2dd1413739a73eb0a576a90e764f14a6.zip
Fix style issue
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/main/DevicesList.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/modern/src/main/DevicesList.js b/modern/src/main/DevicesList.js
index 057ae28d..022da390 100644
--- a/modern/src/main/DevicesList.js
+++ b/modern/src/main/DevicesList.js
@@ -77,9 +77,8 @@ const DeviceRow = ({ data, index, style }) => {
const secondaryText = () => {
if (item.status === 'online' || !item.lastUpdate) {
return formatStatus(item.status, t);
- } else {
- return moment(item.lastUpdate).fromNow();
}
+ return moment(item.lastUpdate).fromNow();
};
return (