Skip to content

Commit 2792b4f

Browse files
committed
Fix undefined error with destructuring
1 parent 01d20c8 commit 2792b4f

File tree

1 file changed

+2
-5
lines changed
  • packages/app/src/app/pages/Sandbox/Editor/Workspace

1 file changed

+2
-5
lines changed

packages/app/src/app/pages/Sandbox/Editor/Workspace/index.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,7 @@ const Workspace = () => {
5050
currentSandbox: { owned },
5151
},
5252
isPatron,
53-
live: {
54-
isLive,
55-
roomInfo: { chatEnabled },
56-
},
53+
live: { isLive, roomInfo },
5754
preferences: {
5855
settings: { zenMode },
5956
},
@@ -74,7 +71,7 @@ const Workspace = () => {
7471
<Component />
7572
</div>
7673

77-
{isLive && chatEnabled && (
74+
{isLive && roomInfo.chatEnabled && (
7875
<WorkspaceItem defaultOpen title="Chat">
7976
<Chat />
8077
</WorkspaceItem>

0 commit comments

Comments
 (0)