Skip to content

Commit 596082a

Browse files
committed
Add nullcheck for currentSandbox for showing ads
Fixes codesandbox#3691
1 parent 9075991 commit 596082a

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export const WorkspaceComponent = ({ theme }) => {
110110
))}
111111

112112
{NEW_SIDEBAR &&
113-
!(isPatron || currentSandbox.owned) &&
113+
!(isPatron || (currentSandbox && currentSandbox.owned)) &&
114114
!(isLive && roomInfo.chatEnabled) && <Advertisement />}
115115
</>
116116
</WorkspaceWrapper>

0 commit comments

Comments
 (0)