Skip to content

Commit

Permalink
fix: rectify linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi committed Dec 15, 2024
1 parent a96923b commit 1ded13e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions components/PostsSearchBar/PostsSearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ function PostsSearchBar({ posts }: Props): JSX.Element {
setOptions(
value
? posts
.filter(({ title }) =>
title.toLowerCase().includes(value.toLowerCase()),
)
.map(({ slug, title }) => ({
value: title,
label: (
<div>
<Link href={`/post/${slug}`}>{title}</Link>
</div>
),
}))
.filter(({ title }) =>
title.toLowerCase().includes(value.toLowerCase()),
)
.map(({ slug, title }) => ({
value: title,
label: (
<div>
<Link href={`/post/${slug}`}>{title}</Link>
</div>
),
}))
: [],
)
},
Expand Down

0 comments on commit 1ded13e

Please sign in to comment.