Skip to content

Commit 5b883dd

Browse files
committed
fix: handle when last_online is not truthy
1 parent 4de8e7c commit 5b883dd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/views/components/representative-alerts/representative-alerts.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,13 @@ export default class RepresentativeAlerts extends React.Component {
111111
align='right'>
112112
{row.account.is_online ? (
113113
<FiberManualRecordIcon className='green' />
114-
) : (
114+
) : row.account.last_online ? (
115115
timeago.format(
116116
row.account.last_online * 1000,
117117
'nano_short'
118118
)
119+
) : (
120+
''
119121
)}
120122
</TableCell>
121123
<TableCell className='rep__alert-metric' align='right'>

0 commit comments

Comments
 (0)