Skip to content

Commit c456565

Browse files
committed
Fix tsc errors
1 parent 02ec10f commit c456565

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/cloud/src/bridge/BridgeOrchestrator.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ export class BridgeOrchestrator {
5959
return BridgeOrchestrator.instance
6060
}
6161

62-
public static isEnabled(user: CloudUserInfo, remoteControlEnabled: boolean): boolean {
62+
public static isEnabled(user: CloudUserInfo | null, remoteControlEnabled: boolean): boolean {
63+
// Always disabled if signed out.
64+
if (!user) {
65+
return false
66+
}
67+
6368
// Disabled by the user's organization?
6469
if (!user.extensionBridgeEnabled) {
6570
return false

0 commit comments

Comments
 (0)