Skip to content

Commit

Permalink
fix double comma issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jackiequach committed Jun 28, 2022
1 parent fc94c80 commit bae8933
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/EditionDetail/Edition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const Edition: React.FC<{ editionResult: EditionResult; backUrl?: string }> = (
</Flex>
{edition.sub_title && <Box>{edition.sub_title}</Box>}
{authorsList && authorsList.length && (
<Box>By {joinArrayOfElements(authorsList, ", ")}</Box>
<Box>By {joinArrayOfElements(authorsList, "")}</Box>
)}
<Box>
{featuredInstance && (
Expand Down
2 changes: 1 addition & 1 deletion src/components/Work/Work.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const WorkDetail: React.FC<{ workResult: WorkResult; backUrl?: string }> = (
</Flex>
{work.sub_title && <Box>{work.sub_title}</Box>}
{authorsList && authorsList.length && (
<Box>By {joinArrayOfElements(authorsList, ", ")}</Box>
<Box>By {joinArrayOfElements(authorsList, "")}</Box>
)}
</Box>
{featuredEdition && (
Expand Down

0 comments on commit bae8933

Please sign in to comment.