Skip to content

Commit

Permalink
fix: remove zero padding for USRNs (#2493)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak authored Nov 29, 2023
1 parent 66e1bdc commit a572587
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function PickOSAddress(props: PickOSAddressProps): FCReturn {
if (selectedAddress) {
props.setAddress({
uprn: selectedAddress.UPRN.padStart(12, "0"),
usrn: selectedAddress.USRN.padStart(8, "0"),
usrn: selectedAddress.USRN, // padStart(8, "0") will break /roads API request
blpu_code: selectedAddress.BLPU_STATE_CODE,
latitude: selectedAddress.LAT,
longitude: selectedAddress.LNG,
Expand Down

0 comments on commit a572587

Please sign in to comment.