Skip to content

Commit

Permalink
Fix lint error: no-extra-boolean-cast
Browse files Browse the repository at this point in the history
  • Loading branch information
efremov-av committed Aug 2, 2024
1 parent cd25901 commit e615b74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react/Drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function Drawer(props: Props) {
})

useEffect(() => {
if (!!onVisibilityChanged) {
if (onVisibilityChanged !== undefined) {
onVisibilityChanged(isMenuOpen)
}
}, [onVisibilityChanged, isMenuOpen])
Expand Down

0 comments on commit e615b74

Please sign in to comment.