From 419234ab64f1dc21af29c10aae4d585a5cd92bf6 Mon Sep 17 00:00:00 2001 From: EnzoVezzaro Date: Wed, 24 Aug 2022 06:52:32 -0400 Subject: [PATCH] removed changing steps --- src/components/Publish/Steps.tsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/components/Publish/Steps.tsx b/src/components/Publish/Steps.tsx index ece8d4607..51a0fa753 100644 --- a/src/components/Publish/Steps.tsx +++ b/src/components/Publish/Steps.tsx @@ -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)