From 5bc2584496c02a8de13fb23c413912e01f3de1aa Mon Sep 17 00:00:00 2001 From: pearl-truss Date: Thu, 18 Apr 2024 15:25:06 -0400 Subject: [PATCH] fix resubmit --- .../src/components/Modal/V2/UnlockSubmitModalV2.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/services/app-web/src/components/Modal/V2/UnlockSubmitModalV2.tsx b/services/app-web/src/components/Modal/V2/UnlockSubmitModalV2.tsx index 3aea7760c8..67a9a9afd4 100644 --- a/services/app-web/src/components/Modal/V2/UnlockSubmitModalV2.tsx +++ b/services/app-web/src/components/Modal/V2/UnlockSubmitModalV2.tsx @@ -138,7 +138,7 @@ export const UnlockSubmitModalV2 = ({ useSubmitContractMutation() // TODO this should be unlockContract - linked rates epic // TODO submitRate and unlockRate should also be set up here - nunlock and edit rate epic - // TODO submitContract and unlockContract should also be set up here - nunlock and edit rate epic + // TODO unlockContract should also be set up here - nunlock and edit rate epic const formik = useFormik({ initialValues: modalFormInitialValues, validationSchema: Yup.object().shape({ @@ -180,7 +180,14 @@ export const UnlockSubmitModalV2 = ({ case 'SUBMIT_RATE' || 'RESUBMIT_RATE': console.info('submit/resubmit rate not implemented yet') break - case 'SUBMIT_CONTRACT' || 'RESUBMIT_CONTRACT': + case 'SUBMIT_CONTRACT': + result = await submitMutationWrapperV2( + submitContract, + submissionData.id, + unlockSubmitModalInput + ) + break + case 'RESUBMIT_CONTRACT': result = await submitMutationWrapperV2( submitContract, submissionData.id,