Skip to content

Commit

Permalink
added Fragment to host BactToTop component
Browse files Browse the repository at this point in the history
  • Loading branch information
noelenwenede committed Nov 4, 2021
1 parent 6b1697e commit df4338c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/x-live-blog-post/src/LiveBlogPost.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable jsx-a11y/no-static-element-interactions */
import { h } from '@financial-times/x-engine'
import { h, Fragment } from '@financial-times/x-engine'
import ShareButtons from './ShareButtons'
import Timestamp from './Timestamp'
import styles from './LiveBlogPost.scss'
Expand Down Expand Up @@ -74,7 +74,7 @@ const LiveBlogPost = (props) => {
/>
<div className={styles['live-blog-post__controls']}>
{showShareButtons && <ShareButtons postId={id || postId} articleUrl={articleUrl} title={title} />}
{Boolean(BackToTopComponent) && <>{BackToTopComponent}</>}
{Boolean(BackToTopComponent) && <Fragment>{BackToTopComponent}</Fragment>}
</div>

{ad}
Expand Down

0 comments on commit df4338c

Please sign in to comment.