diff --git a/services/app-web/src/components/SubmissionSummarySection/RateDetailsSummarySection/SingleRateSummarySection.test.tsx b/services/app-web/src/components/SubmissionSummarySection/RateDetailsSummarySection/SingleRateSummarySection.test.tsx index e6043823f8..f72bdbb9a5 100644 --- a/services/app-web/src/components/SubmissionSummarySection/RateDetailsSummarySection/SingleRateSummarySection.test.tsx +++ b/services/app-web/src/components/SubmissionSummarySection/RateDetailsSummarySection/SingleRateSummarySection.test.tsx @@ -433,10 +433,7 @@ describe('SingleRateSummarySection', () => { name: 'Unlock rate', }) await waitFor(() => { - const parentContractSubmissionID = - rateData.revisions[0].contractRevisions[ - rateData.revisions[0].contractRevisions.length - 1 - ].contract.id + const parentContractSubmissionID = rateData.parentContractID expect(testLocation.pathname).toBe( `/submissions/${parentContractSubmissionID}` ) diff --git a/services/app-web/src/components/SubmissionSummarySection/RateDetailsSummarySection/SingleRateSummarySection.tsx b/services/app-web/src/components/SubmissionSummarySection/RateDetailsSummarySection/SingleRateSummarySection.tsx index 1c01692f2d..eb08fc4264 100644 --- a/services/app-web/src/components/SubmissionSummarySection/RateDetailsSummarySection/SingleRateSummarySection.tsx +++ b/services/app-web/src/components/SubmissionSummarySection/RateDetailsSummarySection/SingleRateSummarySection.tsx @@ -197,10 +197,7 @@ export const SingleRateSummarySection = ({ ) } } - const parentContractSubmissionID = - rate.revisions[0].contractRevisions[ - rate.revisions[0].contractRevisions.length - 1 - ].contract.id + const parentContractSubmissionID = rate.parentContractID return (