Skip to content

Commit

Permalink
refactor: small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanzyTHEbar committed Jan 25, 2023
1 parent 9c942a5 commit 3731b41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GUI/ETVR/src/components/NewWindow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ const NewMenu = (props: INewMenu) => {
createEffect(() => {
if (menuOpenStatus()) {
document.addEventListener('click', clickOutside)
} else {
document.removeEventListener('click', clickOutside)
return
}
document.removeEventListener('click', clickOutside)
})
return (
<div>
Expand Down

0 comments on commit 3731b41

Please sign in to comment.