Skip to content

Commit

Permalink
chore: explicit typing
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-avila committed Nov 16, 2024
1 parent c5d8c67 commit ce4ad24
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 @@ -21,7 +21,9 @@ const AuthorCard: React.FC<{ author: AuthorMetadata }> = ({ author }) => {
setIsClient(true)
}, [])

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

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

0 comments on commit ce4ad24

Please sign in to comment.