From 5b883dd1c64b4e299bf09a476a2d31d53786d617 Mon Sep 17 00:00:00 2001
From: mistakia <1823355+mistakia@users.noreply.github.com>
Date: Thu, 7 Mar 2024 00:01:53 -0500
Subject: [PATCH] fix: handle when last_online is not truthy
---
.../components/representative-alerts/representative-alerts.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/views/components/representative-alerts/representative-alerts.js b/src/views/components/representative-alerts/representative-alerts.js
index b0f84fa8..99ac9f5e 100644
--- a/src/views/components/representative-alerts/representative-alerts.js
+++ b/src/views/components/representative-alerts/representative-alerts.js
@@ -111,11 +111,13 @@ export default class RepresentativeAlerts extends React.Component {
align='right'>
{row.account.is_online ? (
- ) : (
+ ) : row.account.last_online ? (
timeago.format(
row.account.last_online * 1000,
'nano_short'
)
+ ) : (
+ ''
)}