From fa307ee14c68da1f597ee530ccf603bff9bffcd4 Mon Sep 17 00:00:00 2001 From: Aaron Raimist Date: Fri, 7 May 2021 18:41:47 -0500 Subject: [PATCH] Update src/components/views/right_panel/UserInfo.tsx Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com> --- src/components/views/right_panel/UserInfo.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/right_panel/UserInfo.tsx b/src/components/views/right_panel/UserInfo.tsx index e50e71535d..3c35a55395 100644 --- a/src/components/views/right_panel/UserInfo.tsx +++ b/src/components/views/right_panel/UserInfo.tsx @@ -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 ?