Skip to content

Commit

Permalink
fix: handle when last_online is not truthy
Browse files Browse the repository at this point in the history
  • Loading branch information
mistakia committed Mar 7, 2024
1 parent 4de8e7c commit 5b883dd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,13 @@ export default class RepresentativeAlerts extends React.Component {
align='right'>
{row.account.is_online ? (
<FiberManualRecordIcon className='green' />
) : (
) : row.account.last_online ? (
timeago.format(
row.account.last_online * 1000,
'nano_short'
)
) : (
''
)}
</TableCell>
<TableCell className='rep__alert-metric' align='right'>
Expand Down

0 comments on commit 5b883dd

Please sign in to comment.