diff --git a/CHANGELOG.md b/CHANGELOG.md index 7012817eb2..7933259d26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ All notable changes to this project will be documented in this file. The format - Language typo in the paper applications table ([#1965](https://github.com/bloom-housing/bloom/pull/1965)) (Jared White) - Improved UX for the Building Selection Criteria drawer ([#1994](https://github.com/bloom-housing/bloom/pull/1994)) (Jared White) - alternate contact email is validated ([#2035](https://github.com/bloom-housing/bloom/pull/2035)) (Yazeed) + - Incorrect last name ([#2107](https://github.com/bloom-housing/bloom/pull/2107)) (Dominik Barcikowski) ## Backend diff --git a/sites/partners/lib/formatApplicationData.ts b/sites/partners/lib/formatApplicationData.ts index cdde1f6214..6051234e38 100644 --- a/sites/partners/lib/formatApplicationData.ts +++ b/sites/partners/lib/formatApplicationData.ts @@ -83,7 +83,7 @@ export const mapFormToApi = (data: FormData, listingId: string, editMode: boolea const emailAddress: string | null = applicantData?.emailAddress || null applicantData.firstName = mapEmptyStringToNull(applicantData.firstName) - applicantData.lastName = mapEmptyStringToNull(applicantData.firstName) + applicantData.lastName = mapEmptyStringToNull(applicantData.lastName) const workAddress = getAddress( applicantData?.workInRegion === YesNoAnswer.Yes,