From c28cdd318f7a1c418e8eb0810c156401f710ac2e Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 14 Jan 2022 14:38:30 +0000 Subject: [PATCH] add todo --- src/components/Asset/AssetActions/index.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/Asset/AssetActions/index.tsx b/src/components/Asset/AssetActions/index.tsx index 6dd4bdeb2..f855fc0e3 100644 --- a/src/components/Asset/AssetActions/index.tsx +++ b/src/components/Asset/AssetActions/index.tsx @@ -26,6 +26,11 @@ export default function AssetActions({ }): ReactElement { const { accountId, balance } = useWeb3() const { isAssetNetwork } = useAsset() + + // TODO: using this for the publish preview works fine, but produces a console warning + // on asset details page as there is no formik context there: + // Warning: Formik context is undefined, please verify you are calling useFormikContext() + // as child of a component. const formikState = useFormikContext() const [isBalanceSufficient, setIsBalanceSufficient] = useState()