message: Fixes Use isFieldEmpty in RequestLetter.formatData
diff: import t, { t_r } from '../Utility/i18n';
  import { Letter, Template, formatAddress, LetterProps } from 'letter-generator';
  import type { Address, Request, IdDataElement } from '../types/request';
  +import { isFieldEmpty } from '../Utility/requests';
  type FormattedData = { formatted: string; primary_address: Address | null; name: string };
  @@ -114,9 +115,9 @@ export class RequestLetter extends Letter {
  let name = '';
  const formatted = request_data.reduce<string>((acc, item) => {
  - if ((item.type !== 'address' && item.value !== '') || (item.type === 'address' && item.value.street_1)) {
  - acc += `<bold>${item.desc}:</bold> `;
  + if (isFieldEmpty(item)) return acc;
  + acc += `<bold>${item.desc}:</bold> `;
  switch (item.type) {
  case 'address':
  if (item.value.primary) primary_address = item.value;
  @@ -135,8 +136,6 @@ export class RequestLetter extends Letter {
  default:
  return `${acc}${item.value}\n`;
  }
  - }
  - return acc;
  }, '');
  return { formatted, name, primary_address };
  }
  