Skip to content

Commit 1ded13e

Browse files
committed
fix: rectify linter errors
1 parent a96923b commit 1ded13e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

components/PostsSearchBar/PostsSearchBar.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ function PostsSearchBar({ posts }: Props): JSX.Element {
2424
setOptions(
2525
value
2626
? posts
27-
.filter(({ title }) =>
28-
title.toLowerCase().includes(value.toLowerCase()),
29-
)
30-
.map(({ slug, title }) => ({
31-
value: title,
32-
label: (
33-
<div>
34-
<Link href={`/post/${slug}`}>{title}</Link>
35-
</div>
36-
),
37-
}))
27+
.filter(({ title }) =>
28+
title.toLowerCase().includes(value.toLowerCase()),
29+
)
30+
.map(({ slug, title }) => ({
31+
value: title,
32+
label: (
33+
<div>
34+
<Link href={`/post/${slug}`}>{title}</Link>
35+
</div>
36+
),
37+
}))
3838
: [],
3939
)
4040
},

0 commit comments

Comments
 (0)