Skip to content

Commit

Permalink
Make really sure CommentSection is not rendered when logged out (#4746)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbalint authored Jan 15, 2024
1 parent a5bf1d6 commit b4455df
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions editor/src/components/inspector/comments-pane.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import React from 'react'
import { CommentSection } from './sections/comment-section'
import { FlexColumn, Section } from '../../uuiui'
import { useIsLoggedIn } from '../../core/shared/multiplayer-hooks'

export const CommentsPane = React.memo(() => {
const isLoggedIn = useIsLoggedIn()

if (!isLoggedIn) {
return null
}

return (
<FlexColumn
id='leftPaneSettings'
Expand Down

0 comments on commit b4455df

Please sign in to comment.