Update src/components/views/right_panel/UserInfo.tsx

Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
pull/21833/head
Aaron Raimist 2021-05-07 18:41:47 -05:00 committed by GitHub
parent 1f2895dbe9
commit fa307ee14c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ function DeviceItem({userId, device}: {userId: string, device: IDevice}) {
};
let deviceName;
if (device.getDisplayName() === null || device.getDisplayName().trim() === "") {
if (!device.getDisplayName()?.trim()) {
deviceName = device.deviceId;
} else {
deviceName = device.ambiguous ?