diff --git a/src/components/Tool/FixCommitmentInfo/Contact.test.tsx b/src/components/Tool/FixCommitmentInfo/Contact.test.tsx index 5028996d5..c22bbe33b 100644 --- a/src/components/Tool/FixCommitmentInfo/Contact.test.tsx +++ b/src/components/Tool/FixCommitmentInfo/Contact.test.tsx @@ -131,7 +131,6 @@ 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/Contact.tsx b/src/components/Tool/FixCommitmentInfo/Contact.tsx index 5108b81ad..a64e9e88d 100644 --- a/src/components/Tool/FixCommitmentInfo/Contact.tsx +++ b/src/components/Tool/FixCommitmentInfo/Contact.tsx @@ -166,7 +166,7 @@ interface Props { id: string; name: string; donations: DonationsType[]; - statusTitle: string; + statusTitle: string | null | undefined; statusValue: string; amount: number; amountCurrency: string; diff --git a/src/components/Tool/FixCommitmentInfo/FixCommitmentInfo.tsx b/src/components/Tool/FixCommitmentInfo/FixCommitmentInfo.tsx index 770571982..d4743f103 100644 --- a/src/components/Tool/FixCommitmentInfo/FixCommitmentInfo.tsx +++ b/src/components/Tool/FixCommitmentInfo/FixCommitmentInfo.tsx @@ -273,9 +273,8 @@ const FixCommitmentInfo: React.FC = ({ key={contact.id} donations={contact.donations?.nodes} statusTitle={ - contact.status - ? contactPartnershipStatus[contact.status] - : '' + contact.status && + contactPartnershipStatus[contact.status] } statusValue={ getLocalizedContactStatus(t, contact.status) || ''