From 7f0bf4ac9424d464167bd7935f2db65e63a0a2ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= Date: Fri, 26 Apr 2024 18:50:21 -0400 Subject: [PATCH] lightspeedExplorerView: hide role is undefined (#1255) Hide the `Role: ` line if there is no role set. --- src/features/lightspeed/utils/explorerView.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/lightspeed/utils/explorerView.ts b/src/features/lightspeed/utils/explorerView.ts index ebe1bf48b..6098b3ada 100644 --- a/src/features/lightspeed/utils/explorerView.ts +++ b/src/features/lightspeed/utils/explorerView.ts @@ -101,7 +101,7 @@ export function getWebviewContentWithActiveSession(
Logged in as: ${userName}
User Type: ${userType}
- Role: ${userRole}
+ ${userRole ? "Role: " + userRole : ""} ${lightspeedExperimentalEnabled ? explainForm : ""}