diff --git a/src/components/Header/index.tsx b/src/components/Header/index.tsx index c7e7370..c31b513 100644 --- a/src/components/Header/index.tsx +++ b/src/components/Header/index.tsx @@ -45,14 +45,18 @@ export const Header: React.FC = ({ {authors && ( - - {authors.length} contributor{authors.length > 1 && "s"} - - {authors - .map((author) => `${author.name}#${author.hash}`) - .join(", ")} - - + {authors.length > 1 ? ( + + {authors.length} contributor{authors.length > 1 && "s"} + + {authors + .map((author) => `${author.name}#${author.hash}`) + .join(", ")} + + + ) : ( + `${authors[0].name}#${authors[0].hash}` + )} )} {dateToHuman && {dateToHuman}}