1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

Merge pull request #1660 from oceanprotocol/fix/issue-1659-publish-fails-connection

fix publishing when connecting wallet on publish form
This commit is contained in:
EnzoVezzaro 2022-09-08 08:36:26 -04:00 committed by GitHub
commit 0c9b276247
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,13 +22,6 @@ export function Steps({
setFieldValue('user.accountId', accountId)
}, [chainId, accountId, setFieldValue])
// Reset the selected baseToken on chainId change
useEffect(() => {
if (!chainId) return
setFieldValue('pricing.baseToken', null)
}, [chainId, setFieldValue])
// auto-sync publish feedback into form data values
useEffect(() => {
setFieldValue('feedback', feedback)