From fd1a7f263aea23b01688a1923efff4f48245f18c Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 27 Oct 2020 21:05:09 +0100 Subject: [PATCH] cleanup --- src/components/organisms/AssetActions/Pool/Add/index.tsx | 2 +- src/components/pages/History/PublishedList.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/organisms/AssetActions/Pool/Add/index.tsx b/src/components/organisms/AssetActions/Pool/Add/index.tsx index 3ccac3c5d..de2a8b866 100644 --- a/src/components/organisms/AssetActions/Pool/Add/index.tsx +++ b/src/components/organisms/AssetActions/Pool/Add/index.tsx @@ -92,7 +92,7 @@ export default function Add({ // Get maximum amount for either OCEAN or datatoken useEffect(() => { - if (!ocean) return + if (!ocean || !poolAddress) return async function getMaximum() { const amountMaxPool = diff --git a/src/components/pages/History/PublishedList.tsx b/src/components/pages/History/PublishedList.tsx index 6116bdb60..5425a609d 100644 --- a/src/components/pages/History/PublishedList.tsx +++ b/src/components/pages/History/PublishedList.tsx @@ -7,7 +7,6 @@ import AssetList from '../../organisms/AssetList' export default function PublishedList(): ReactElement { const { ocean, status, accountId } = useOcean() - // TODO: wait for ocean-lib-js with https://github.com/oceanprotocol/ocean-lib-js/pull/308 const [queryResult, setQueryResult] = useState() const [isLoading, setIsLoading] = useState(false)