Skip to content

Commit

Permalink
return Author as String
Browse files Browse the repository at this point in the history
  • Loading branch information
thedannywahl committed Feb 27, 2024
1 parent b3357ab commit aa026bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions isp-site/src/components/mdtoui.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ const mdtoui = {
children: filterChildrenProps(props),
};
const [quote, author] =
Children.toArray(props.children)[0]?.props.children.split("--", 2) ??
undefined;
Children.toArray(props.children)[0]
?.props.children.toString()
.split("--", 2) ?? undefined;
return author ? (
<Byline description={quote} title={author} margin="medium 0" {...props}>
<Avatar name={author} />
Expand Down

0 comments on commit aa026bf

Please sign in to comment.