Skip to content

Commit 77479cd

Browse files
authored
fix: hide "last seen" when user is suspended (coder#16813)
Fixes: coder#14887
1 parent 0913594 commit 77479cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

site/src/pages/UsersPage/UsersTable/UsersTableBody.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@ export const UsersTableBody: FC<UsersTableBodyProps> = ({
176176
]}
177177
>
178178
<div>{user.status}</div>
179-
<LastSeen at={user.last_seen_at} css={{ fontSize: 12 }} />
179+
{(user.status === "active" || user.status === "dormant") && (
180+
<LastSeen at={user.last_seen_at} css={{ fontSize: 12 }} />
181+
)}
180182
</TableCell>
181183

182184
{canEditUsers && (

0 commit comments

Comments
 (0)