Skip to content

Commit 975de81

Browse files
authored
fix: cannot read property username (#8551)
1 parent 57ccfd1 commit 975de81

File tree

1 file changed

+1
-1
lines changed
  • packages/app/src/app/pages/Dashboard/Components/Sandbox

1 file changed

+1
-1
lines changed

packages/app/src/app/pages/Dashboard/Components/Sandbox/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ const GenericSandbox = ({ isScrolling, item, page }: GenericSandboxProps) => {
308308
{...interactionProps}
309309
isScrolling={isScrolling}
310310
username={
311-
sandboxProps.sandbox.author.username === user.username
311+
sandboxProps.sandbox.author.username === user?.username
312312
? 'you'
313313
: sandboxProps.sandbox.author.username
314314
}

0 commit comments

Comments
 (0)