Skip to content

Commit

Permalink
add a fallback in case no slate widget
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Aug 16, 2021
1 parent ed5a5d2 commit c7e6fbe
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/PrivacyProtection/PrivacyProtection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,19 @@ export default injectIntl(
>
<div className="overlay">
<div className="wrapped">
<div className="privacy-statement">
{serializeNodes(dataprotection.privacy_statement || [])}
</div>
{typeof dataprotection.privacy_statement === 'string' ? (
<div
className="privacy-statement"
dangerouslySetInnerHTML={{
__html: dataprotection.privacy_statement,
}}
/>
) : (
<div className="privacy-statement">
{serializeNodes(dataprotection.privacy_statement || [])}
</div>
)}

<div className="privacy-button">
<Button
primary
Expand Down

0 comments on commit c7e6fbe

Please sign in to comment.