diff --git a/src/components/ComplaintDetail/ComplaintDetailBody.js b/src/components/ComplaintDetail/ComplaintDetailBody.js index 6cadceff..222060e1 100644 --- a/src/components/ComplaintDetail/ComplaintDetailBody.js +++ b/src/components/ComplaintDetail/ComplaintDetailBody.js @@ -57,7 +57,7 @@ ConsumerConsent.propTypes = { value: PropTypes.string }; const CompanyTimely = ({ value }) => { if (!value) { - return null; + return 'N/A'; } const styles = ['cf-icon__before']; if (value.toLowerCase() === 'no') { @@ -168,30 +168,26 @@ export const ComplaintDetailBody = ({ data, error, id }) => {
- {!!data.timely && ( - <> -

Timely response?

- -
- - )} - {!!data.company_response && ( - <> -

Company response to consumer

- - {data.company_response} - -
- - )} - {!!data.company_public_response && ( - <> -

Company public response

- - {data.company_public_response} - - - )} + <> +

Timely response?

+ +
+ + <> +

Company response to consumer

+ + {data.company_response ? data.company_response : 'N/A'} + +
+ + <> +

Company public response

+ + {data.company_public_response + ? data.company_public_response + : 'N/A'} + +