diff --git a/src/components/@shared/DebugOutput.tsx b/src/components/@shared/DebugOutput.tsx index 9f42da559..1b4d359a2 100644 --- a/src/components/@shared/DebugOutput.tsx +++ b/src/components/@shared/DebugOutput.tsx @@ -4,12 +4,12 @@ export default function DebugOutput({ title, output }: { - title: string + title?: string output: any }): ReactElement { return (
-
{title}
+ {title &&
{title}
}
         {JSON.stringify(output, null, 2)}
       
diff --git a/src/components/Asset/AssetActions/Pool/Add/index.tsx b/src/components/Asset/AssetActions/Pool/Add/index.tsx index ed284e48e..6f97b9c32 100644 --- a/src/components/Asset/AssetActions/Pool/Add/index.tsx +++ b/src/components/Asset/AssetActions/Pool/Add/index.tsx @@ -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 && } + {debug && } )}