Skip to content

Commit

Permalink
fix: fixed prettier error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekep-Obasi committed Nov 9, 2023
1 parent 454c624 commit 9d735f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/App/SideBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ const Content = forwardRef<HTMLDivElement, ContentProp>(({ onSubmit, subViewOpen
export const SideBar = ({ onSubmit }: Props) => {
const sidebarIsOpen = useAppStore((s) => s.sidebarIsOpen)
const selectedNode = useSelectedNode()
const subViewIsOpen = !!selectedNode && selectedNode.node_type !== 'topic' && sidebarIsOpen && selectedNode.node_type !== 'person'

const subViewIsOpen =
!!selectedNode && selectedNode.node_type !== 'topic' && sidebarIsOpen && selectedNode.node_type !== 'person'

const [showTeachMe] = useDataStore((s) => [s.showTeachMe])

return (
Expand Down

0 comments on commit 9d735f4

Please sign in to comment.