From 4b0f7c00422f1721675724dc978c3045ea2bcbf7 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 8 Oct 2020 14:45:55 +0200 Subject: [PATCH] typing fixes --- .../AssetActions/Pool/PoolStatistics.tsx | 4 ++-- .../organisms/AssetActions/Pool/Remove.tsx | 6 +++--- .../organisms/AssetActions/Pool/index.tsx | 18 +++++++++--------- .../organisms/AssetActions/index.tsx | 6 +----- 4 files changed, 15 insertions(+), 19 deletions(-) diff --git a/src/components/organisms/AssetActions/Pool/PoolStatistics.tsx b/src/components/organisms/AssetActions/Pool/PoolStatistics.tsx index 17931dac3..f69cd5e1c 100644 --- a/src/components/organisms/AssetActions/Pool/PoolStatistics.tsx +++ b/src/components/organisms/AssetActions/Pool/PoolStatistics.tsx @@ -26,8 +26,8 @@ export default function PoolStatistics({ return (

Pool Statistics

- - + + {debug === true && } diff --git a/src/components/organisms/AssetActions/Pool/Remove.tsx b/src/components/organisms/AssetActions/Pool/Remove.tsx index ff38bebe2..245f1e2a1 100644 --- a/src/components/organisms/AssetActions/Pool/Remove.tsx +++ b/src/components/organisms/AssetActions/Pool/Remove.tsx @@ -50,7 +50,7 @@ export default function Remove({ } function handleMax() { - setAmount(userLiquidity.ocean) + setAmount(`${userLiquidity.ocean}`) } return ( @@ -63,7 +63,7 @@ export default function Remove({
Your pool liquidity: - +
- {userLiquidity.ocean > amount && ( + {userLiquidity.ocean > Number(amount) && (