1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

fix warning (#475)

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
This commit is contained in:
mihaisc 2021-04-01 19:27:02 +03:00 committed by GitHub
parent 96296008c9
commit c09bc3342a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -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 (
<ReactMarkdown
source={textCleaned}

View File

@ -103,7 +103,6 @@ export default function FormTrade({
toast.error(error.message)
}
}
return (
<Formik
initialValues={initialValues}
@ -129,7 +128,7 @@ export default function FormTrade({
) : (
<div className={styles.alertWrap}>
<Alert
text={content.warning.main}
text={content.warning}
state="info"
action={{
name: 'I understand',