diff --git a/src/components/Tool/FixCommitmentInfo/Contact.test.tsx b/src/components/Tool/FixCommitmentInfo/Contact.test.tsx index c22bbe33b..5028996d5 100644 --- a/src/components/Tool/FixCommitmentInfo/Contact.test.tsx +++ b/src/components/Tool/FixCommitmentInfo/Contact.test.tsx @@ -131,6 +131,7 @@ describe('FixCommitmentContact', () => { const { getByTestId } = render(); userEvent.click(getByTestId('confirmButton')); + await waitFor(() => { expect(getByTestId('statusSelectError')).toHaveTextContent( 'Please select a status', diff --git a/src/components/Tool/FixCommitmentInfo/FixCommitmentInfo.tsx b/src/components/Tool/FixCommitmentInfo/FixCommitmentInfo.tsx index 770571982..236050cb6 100644 --- a/src/components/Tool/FixCommitmentInfo/FixCommitmentInfo.tsx +++ b/src/components/Tool/FixCommitmentInfo/FixCommitmentInfo.tsx @@ -273,9 +273,7 @@ const FixCommitmentInfo: React.FC = ({ key={contact.id} donations={contact.donations?.nodes} statusTitle={ - contact.status - ? contactPartnershipStatus[contact.status] - : '' + contactPartnershipStatus[contact.status] || '' } statusValue={ getLocalizedContactStatus(t, contact.status) || ''