Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
valcosmos committed Sep 30, 2024
1 parent 64eb7d6 commit d5b3457
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/SearchButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ import { AlgoliaButton } from 'pliny/search/AlgoliaButton'
import { KBarButton } from 'pliny/search/KBarButton'

function SearchButton() {
if (
siteMetadata.search
&& (siteMetadata.search.provider === 'algolia' || siteMetadata.search.provider === 'kbar')
) {
if (siteMetadata.search && (siteMetadata.search.provider === 'algolia' || siteMetadata.search.provider === 'kbar')) {
const SearchButtonWrapper
= siteMetadata.search.provider === 'algolia' ? AlgoliaButton : KBarButton

Expand Down

0 comments on commit d5b3457

Please sign in to comment.