diff --git a/src/components/organisms/AssetActions/Pool/Add.tsx b/src/components/organisms/AssetActions/Pool/Add.tsx index 630e5ccc8..eff7ad645 100644 --- a/src/components/organisms/AssetActions/Pool/Add.tsx +++ b/src/components/organisms/AssetActions/Pool/Add.tsx @@ -10,6 +10,7 @@ import InputElement from '../../../atoms/Input/InputElement' import Token from './Token' import { Balance } from './' import PriceUnit from '../../../atoms/Price/PriceUnit' +import Alert from '../../../atoms/Alert' export default function Add({ setShowAdd, @@ -24,6 +25,7 @@ export default function Add({ }): ReactElement { const { ocean, accountId, balance } = useOcean() const [amount, setAmount] = useState('') + const [txId, setTxId] = useState('') const [isLoading, setIsLoading] = useState() const newPoolTokens = @@ -45,6 +47,7 @@ export default function Add({ ) // TODO: Figure out the result structure, thenreplace `any` return in lib-js console.log(result) + setTxId(result.transactionHash) } catch (error) { console.error(error.message) toast.error(error.message) @@ -95,6 +98,12 @@ export default function Add({ Supply )} + {txId && ( + + )} )