Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
Copons committed Mar 22, 2021
1 parent cd508bf commit fd37406
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function NavigationToggle( { icon, isOpen } ) {

const toggleNavigationPanel = () => {
if ( isOpen ) {
setIsNavigationPanelOpened( ! isOpen );
setIsNavigationPanelOpened( false );
return;
}
openNavigationPanelToMenu( navigationPanelMenu );
Expand Down

0 comments on commit fd37406

Please sign in to comment.