Skip to content

Commit

Permalink
Fix "empty" className renders in read-only mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tnajdek committed Aug 27, 2021
1 parent 54f0562 commit d550f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/components/bibliographySection.jsx
Expand Up @@ -57,7 +57,7 @@ const BibliographySection = props => {
return (
<section
className={ cx('section', 'section-bibliography',
{ 'loading': !isReady && !isHydrated, 'empty': localCitationsCount === 0 })
{ 'loading': !isReady && !isHydrated, 'empty': !isReadOnly && localCitationsCount === 0 })
}
>
<div className="container" suppressHydrationWarning={ true }>
Expand Down

0 comments on commit d550f21

Please sign in to comment.