From c09bc3342a6eb8639d526856087eab002175b37e Mon Sep 17 00:00:00 2001 From: mihaisc Date: Thu, 1 Apr 2021 19:27:02 +0300 Subject: [PATCH] fix warning (#475) Signed-off-by: mihaisc --- src/components/atoms/Markdown.tsx | 2 +- src/components/organisms/AssetActions/Trade/FormTrade.tsx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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 (