Skip to content

Commit

Permalink
chore: strict assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-avila committed Nov 16, 2024
1 parent ad7a3b9 commit 5d3444b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/Author/AuthorPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ const AuthorCard: React.FC<{ author: AuthorMetadata }> = ({ author }) => {
setIsClient(true)
}, [])

const socialsEntries = Object.entries(author.socials ?? {}).filter(([, value]) => !!value)
const socialsEntries = Object.entries(author.socials ?? {}).filter(
([, value]) => !!value,
) as unknown as [string, string][]

return (
<Link href={`/authors/${author.authorid}`}>
Expand Down

0 comments on commit 5d3444b

Please sign in to comment.