Skip to content

Commit

Permalink
Give it a type, too.
Browse files Browse the repository at this point in the history
  • Loading branch information
dokterbob committed Oct 9, 2024
1 parent 2bcb7c4 commit 1ce70d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface Props {
hide?: boolean;
}

const getAuthorAvatarId = (author) => {
const getAuthorAvatarId = (author: string | undefined) => {
if (!author) return 'default';

return author
Expand Down

0 comments on commit 1ce70d0

Please sign in to comment.