Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit fa307ee

Browse files
Update src/components/views/right_panel/UserInfo.tsx
Co-authored-by: Michael Telatynski <[email protected]>
1 parent 1f2895d commit fa307ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/right_panel/UserInfo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ function DeviceItem({userId, device}: {userId: string, device: IDevice}) {
188188
};
189189

190190
let deviceName;
191-
if (device.getDisplayName() === null || device.getDisplayName().trim() === "") {
191+
if (!device.getDisplayName()?.trim()) {
192192
deviceName = device.deviceId;
193193
} else {
194194
deviceName = device.ambiguous ?

0 commit comments

Comments
 (0)