HHS/OPRE-OPS

`AgreementSummaryCard` broken when the `Agreement` doesn't have a `ProjectOfficer`

Closed this issue · 1 comments

AgreementSummaryCard broken when the Agreement doesn't have a ProjectOfficer

Expected Behavior

  1. Create an Agreement without a PO.
  2. Navigate to the Create New Budget Line page and select the Agreement
  3. The AgreementSummaryCard should display the Agreement details.

Current Behavior

In step 3 above, the JS throws an exception because no ProjectOfficer is defined on the Agreement.

Possible Implementation

  1. Is the ProjectOfficer required to create a Contract? If not, do not assume it is set in the AgreementSummaryCard.
  2. An Agreement that is not a Contract will not have a ProjectOfficer set at all - do not require this in the AgreementSummaryCard for non-Contract agreements.

7/10