Skip to content

Commit

Permalink
fix: OS Places LPI data mapping for pao should also account for `PA…
Browse files Browse the repository at this point in the history
…O_TEXT` (#3063)
  • Loading branch information
jessicamcinchak authored Apr 26, 2024
1 parent 60818b4 commit 0e4a587
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ export default function PickOSAddress(props: PickOSAddressProps): FCReturn {
pao: [
selectedAddress.PAO_START_NUMBER,
selectedAddress.PAO_START_SUFFIX,
selectedAddress.PAO_TEXT, // populated in cases of building name only, no street number
]
.filter(Boolean)
.join(""), // docs reference PAO_TEXT, but not found in response so roll our own
.join(""),
street: selectedAddress.STREET_DESCRIPTION,
town: selectedAddress.TOWN_NAME,
postcode: selectedAddress.POSTCODE_LOCATOR,
Expand Down

0 comments on commit 0e4a587

Please sign in to comment.