From 61480f2193d6c90e7c674638608051561f51035b Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Tue, 26 May 2026 15:28:04 -0400 Subject: [PATCH] refactor a smidge --- .../address-questions/address-questions.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/iss-components/address-questions/address-questions.vue b/src/iss-components/address-questions/address-questions.vue index 96ce8f07..5d9b8336 100644 --- a/src/iss-components/address-questions/address-questions.vue +++ b/src/iss-components/address-questions/address-questions.vue @@ -193,9 +193,12 @@ export default { window.handleGoogleMapsAuthFailure = () => { this.unloadAutocomplete(); // Clean up any initialized autocomplete functionality if (this.addressField1) { - document.getElementById('autocomplete').disabled = false; // Re-enable the address field so the user can manually enter their address - document.getElementById('autocomplete').style.removeProperty('background-image'); // Remove the Google Maps icon from the address field - document.getElementById('autocomplete').placeholder = ''; // Optionally, update the placeholder to indicate manual entry + const el = this.addressField1; + if (el) { + el.disabled = false; // Re-enable the address field so the user can manually enter their address + el.style.removeProperty('background-image'); // Remove the Google Maps icon from the address field + el.placeholder = ''; // Optionally, update the placeholder to indicate manual entry + } } this.showAllFields = true; // Show the address fields so the user can manually enter their address if Google Maps fails to load };