Skip to content

Commit

Permalink
fix resubmit
Browse files Browse the repository at this point in the history
  • Loading branch information
pearl-truss committed Apr 18, 2024
1 parent 11d0268 commit 5bc2584
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions services/app-web/src/components/Modal/V2/UnlockSubmitModalV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 5bc2584

Please sign in to comment.