From 6309d02ab508b4fe3a4fe9a0dee7e4aa0bc4447a Mon Sep 17 00:00:00 2001 From: Frank Pigeon Jr Date: Fri, 20 Sep 2024 15:28:10 -0500 Subject: [PATCH] fix: fixes validation issues --- .../Agreements/AgreementEditor/AgreementEditForm.jsx | 2 -- .../Agreements/AgreementEditor/AgreementEditFormSuite.js | 1 + .../BudgetLineItems/CreateBLIsAndSCs/CreateBLIsAndSCs.jsx | 5 +---- .../components/BudgetLineItems/CreateBLIsAndSCs/suite.js | 4 ++-- frontend/src/pages/agreements/approve/ApproveAgreement.jsx | 6 ++++++ frontend/src/pages/agreements/review/suite.js | 3 ++- 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/Agreements/AgreementEditor/AgreementEditForm.jsx b/frontend/src/components/Agreements/AgreementEditor/AgreementEditForm.jsx index 4be4683832..a6d9470727 100644 --- a/frontend/src/components/Agreements/AgreementEditor/AgreementEditForm.jsx +++ b/frontend/src/components/Agreements/AgreementEditor/AgreementEditForm.jsx @@ -328,8 +328,6 @@ export const AgreementEditForm = ({ handleConfirm={modalProps.handleConfirm} /> )} -

Agreement Type

-

Select the agreement type to get started.

{ }); test("contract-type", "This is required information", () => { enforce(data.contract_type).notEquals("-Select an option-"); + enforce(data.contract_type).isNotEmpty(); }); test("team-members", "This is required information", () => { enforce(data.team_members).lengthNotEquals(0); diff --git a/frontend/src/components/BudgetLineItems/CreateBLIsAndSCs/CreateBLIsAndSCs.jsx b/frontend/src/components/BudgetLineItems/CreateBLIsAndSCs/CreateBLIsAndSCs.jsx index e68b66f7c9..274c8a7d98 100644 --- a/frontend/src/components/BudgetLineItems/CreateBLIsAndSCs/CreateBLIsAndSCs.jsx +++ b/frontend/src/components/BudgetLineItems/CreateBLIsAndSCs/CreateBLIsAndSCs.jsx @@ -1,6 +1,5 @@ import PropTypes from "prop-types"; import React from "react"; -import { convertCodeForDisplay } from "../../../helpers/utils"; import EditModeTitle from "../../../pages/agreements/EditModeTitle"; import AgreementBudgetLinesHeader from "../../Agreements/AgreementBudgetLinesHeader"; import AgreementTotalCard from "../../Agreements/AgreementDetailsCards/AgreementTotalCard"; @@ -61,7 +60,6 @@ export const CreateBLIsAndSCs = ({ setIncludeDrafts }) => { const { - budgetLinePageErrorsExist, handleDeleteBudgetLine, handleDuplicateBudgetLine, handleEditBLI, @@ -210,7 +208,7 @@ export const CreateBLIsAndSCs = ({ /> )} - {budgetLinePageErrorsExist && ( + {pageErrors && (