diff --git a/src/components/atoms/Markdown.tsx b/src/components/atoms/Markdown.tsx index f4f96ae1f..2edc94cdf 100644 --- a/src/components/atoms/Markdown.tsx +++ b/src/components/atoms/Markdown.tsx @@ -11,7 +11,7 @@ const Markdown = ({ }): ReactElement => { // fix react-markdown \n transformation // https://github.com/rexxars/react-markdown/issues/105#issuecomment-351585313 - const textCleaned = text.replace(/\\n/g, '\n ') + const textCleaned = text?.replace(/\\n/g, '\n ') return (