hof 21.2.0-postcode-lookup-beta.2 → 21.2.0-postcode-lookup-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -279,7 +279,7 @@ module.exports = config => {
279
279
  // Clear the value stored in the addresses radio button group
280
280
  req.sessionModel.set(`${addressFieldNamePrefix}-select`, '');
281
281
  // Replace punctuation in postcode and call OS Places API to return list of addresses
282
- const enteredPostcode = req.sessionModel.get(`${addressFieldNamePrefix}-postcode`)?.replace(/[^\w]+/g, "").replace(/^(.*)(\d)/, "$1 $2");
282
+ const enteredPostcode = req.form.values[`${addressFieldNamePrefix}-postcode`]?.replace(/[^\w]+/g, "").replace(/^(.*)(\d)/, "$1 $2");
283
283
 
284
284
  await PostcodeLookup(enteredPostcode, apiURL, apiKey)
285
285
  .then(function (response) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "21.2.0-postcode-lookup-beta.2",
4
+ "version": "21.2.0-postcode-lookup-beta.3",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",