mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
fixes
This commit is contained in:
parent
08a691ceee
commit
c10ca06dbc
@ -4,12 +4,12 @@ export default function DebugOutput({
|
||||
title,
|
||||
output
|
||||
}: {
|
||||
title: string
|
||||
title?: string
|
||||
output: any
|
||||
}): ReactElement {
|
||||
return (
|
||||
<div style={{ marginTop: 'var(--spacer)' }}>
|
||||
<h5>{title}</h5>
|
||||
{title && <h5>{title}</h5>}
|
||||
<pre style={{ wordWrap: 'break-word' }}>
|
||||
<code>{JSON.stringify(output, null, 2)}</code>
|
||||
</pre>
|
||||
|
@ -172,6 +172,7 @@ export default function Add({
|
||||
isDisabled={
|
||||
!isValid ||
|
||||
!isWarningAccepted ||
|
||||
!amount ||
|
||||
amount === '' ||
|
||||
amount === '0'
|
||||
}
|
||||
@ -183,7 +184,7 @@ export default function Add({
|
||||
amount={amount}
|
||||
txId={txId}
|
||||
/>
|
||||
{debug && <DebugOutput title="Collected values" output={values} />}
|
||||
{debug && <DebugOutput output={values} />}
|
||||
</>
|
||||
)}
|
||||
</Formik>
|
||||
|
Loading…
Reference in New Issue
Block a user