diff --git a/public/example-responses/postcode-AA12AA.json b/public/example-responses/postcode-AA12AA.json
index 6cf231ec..a99e98c5 100644
--- a/public/example-responses/postcode-AA12AA.json
+++ b/public/example-responses/postcode-AA12AA.json
@@ -136,7 +136,7 @@
}
],
"electoral_services": {
- "council_id": "E09000033",
+ "council_id": "WAE",
"name": "City of Westminster",
"email": "electoralservices@westminster.gov.uk",
"phone": "020 7641 2730",
diff --git a/src/AddressPicker.js b/src/AddressPicker.js
index c1f1844a..5edf7663 100644
--- a/src/AddressPicker.js
+++ b/src/AddressPicker.js
@@ -13,11 +13,14 @@ class AddressPicker extends React.Component {
setAddress(event) {
this.setState({ address: event.target.value });
+ if (event.target.selectedOptions.length > 0) {
+ this.props.setUPRN(event.target.selectedOptions[0].dataset.uprn);
+ }
}
addressOption(address, index) {
return (
-
);
diff --git a/src/ElectionInformationWidget.js b/src/ElectionInformationWidget.js
index f9bf6b63..810042b9 100644
--- a/src/ElectionInformationWidget.js
+++ b/src/ElectionInformationWidget.js
@@ -36,6 +36,7 @@ function ElectionInformationWidget(props) {
const [notifications, setNotifications] = useState(undefined);
const [addressList, setAddressList] = useState(undefined);
const [postcode, setPostcode] = useState(undefined);
+ const [uprn, setUPRN] = useState(undefined);
const [dates, setDates] = useState(undefined);
const [electoralServices, setElectoralServices] = useState(undefined);
const dataSource = process.env.REACT_APP_API;
@@ -156,6 +157,7 @@ function ElectionInformationWidget(props) {
+ For detailed information on accessibility, see WhereDoIVote.co.uk +
+ )} + {props.station.coordinates && (