Closed yrambler2001 closed 2 days ago
@yrambler2001, thank you for PR! We considered your changes when migrating mapping directly to the documents service. Example: https://github.com/diia-open-source/be-documents-service/blob/main/src/documents/driverLicense/dataMappers/documentPdf.ts
If you overuse optional chaining, you will silence errors and make it much more difficult to debug your code later. Overuse optional chainig increases amount of conditional branches in code which should be covered by unit tests.