Skip to content

Commit

Permalink
style: add curlys around if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Aug 7, 2020
1 parent 58bf88d commit b0b24b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/NavigationItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ const NavItem = ({ page, depthLevel, searchTerm, filteredPageNames }) => {
? getHighlightedText(page.displayName, searchTerm)
: page.displayName;

if (filteredPageNames && !filteredPageNames.includes(page.displayName))
if (filteredPageNames && !filteredPageNames.includes(page.displayName)) {
return null;
}

return (
<li
Expand Down

0 comments on commit b0b24b0

Please sign in to comment.