diff --git a/src/helpers/renderHtmlContent.js b/src/helpers/renderHtmlContent.js index 61f176f..672546a 100644 --- a/src/helpers/renderHtmlContent.js +++ b/src/helpers/renderHtmlContent.js @@ -1,5 +1,6 @@ import parse from 'html-react-parser'; +import { isNil } from 'ramda'; -const renderHtmlContent = (content = '') => parse(content); +const renderHtmlContent = (content = '') => !isNil(content) ? parse(content) : ''; export default renderHtmlContent; \ No newline at end of file diff --git a/src/pages/BandoView/index.js b/src/pages/BandoView/index.js index 3e78d30..2132270 100644 --- a/src/pages/BandoView/index.js +++ b/src/pages/BandoView/index.js @@ -176,7 +176,9 @@ const BandoView = () => {