1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00
This commit is contained in:
Matthias Kretschmann 2022-01-14 14:38:30 +00:00
parent afe9127db9
commit c28cdd318f
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -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 <Formik> component.
const formikState = useFormikContext<FormPublishData>()
const [isBalanceSufficient, setIsBalanceSufficient] = useState<boolean>()