Skip to content

Commit

Permalink
Reuse existing variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave authored Nov 3, 2022
1 parent c8d48b8 commit 82f9963
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ function NavigationMenuSelector( {

if ( isCreatingMenu ) {
enableOptions = false;
} else if ( shouldEnableMenuSelector ) {
enableOptions = true;
} else {
enableOptions = shouldEnableMenuSelector;
}

useEffect( () => {
Expand Down

0 comments on commit 82f9963

Please sign in to comment.