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

removed changing steps

This commit is contained in:
EnzoVezzaro 2022-08-24 06:52:32 -04:00
parent 245ccfe5e4
commit 419234ab64

View File

@ -27,18 +27,6 @@ export function Steps({
setFieldValue('user.accountId', accountId)
}, [chainId, accountId, setFieldValue])
useEffect(() => {
if (!chainId) return
// Reset the pricing values on chainId change:
// - the user needs to update the pricing schema on network changes
// - if the tx has been started, don't restore pricing values
if (values.pricing.price && values.feedback[1].status === 'pending') {
setFieldValue('pricing', initialValues.pricing)
router.push(`/publish/3`)
}
}, [chainId, setFieldValue])
// auto-sync publish feedback into form data values
useEffect(() => {
setFieldValue('feedback', feedback)