Skip to content

Commit

Permalink
Merge pull request #514 from mittwald/bugfix/session-list-unknown
Browse files Browse the repository at this point in the history
Browser+OS in session list may be undefined
  • Loading branch information
martin-helmich authored May 29, 2024
2 parents 45c5603 + b93bba4 commit 7516df4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/user/session/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export default class List extends ListBaseCommand<
tokenId: { header: "ID", minWidth: 36 },
device: {
header: "Device",
get: (row) => `${row.device.browser} on ${row.device.os}`,
get: (row) =>
`${row.device.browser ?? "unknown browser"} on ${row.device.os ?? "unknown OS"}`,
},
location: {
header: "Location",
Expand Down

0 comments on commit 7516df4

Please sign in to comment.