diff --git a/app/components/Form/ProjectMilestoneReportForm.tsx b/app/components/Form/ProjectMilestoneReportForm.tsx index f4ce01750b..a13aa98add 100644 --- a/app/components/Form/ProjectMilestoneReportForm.tsx +++ b/app/components/Form/ProjectMilestoneReportForm.tsx @@ -8,7 +8,6 @@ import { useUpdateReportingRequirementFormChange } from "mutations/ProjectReport import { MutableRefObject, useMemo, useRef } from "react"; import { graphql, useFragment } from "react-relay"; import CollapsibleReport from "components/ReportingRequirement/CollapsibleReport"; - import SavingIndicator from "./SavingIndicator"; import UndoChangesButton from "./UndoChangesButton"; import milestoneUiSchema from "data/jsonSchemaForm/projectMilestoneUiSchema"; @@ -273,15 +272,6 @@ const ProjectMilestoneReportForm: React.FC = (props) => { {sortedMilestoneReports.map((node, index) => { const formData = { ...node.newFormData }; - formData.calculatedGrossAmount = Number( - node.calculatedGrossAmountThisMilestone - ); - formData.calculatedHoldbackAmount = Number( - node.calculatedNetAmountThisMilestone - ); - formData.calculatedNetAmount = Number( - node.calculatedHoldbackAmountThisMilestone - ); return (
= (props) => { ObjectFieldTemplate={EmptyObjectFieldTemplate} formContext={{ dueDate: formData?.reportDueDate, + calculatedGrossAmount: + node.calculatedGrossAmountThisMilestone, + calculatedHoldbackAmount: + node.calculatedHoldbackAmountThisMilestone, + calculatedNetAmount: node.calculatedNetAmountThisMilestone, }} />