Removing unused state variables

This commit is contained in:
Leah Schumann 2023-01-18 13:11:48 -05:00
parent 00c5b46b5f
commit 2545b655d3

View file

@ -111,9 +111,7 @@ export default {
alertCopyVerificationWarning: "", alertCopyVerificationWarning: "",
alertHeadlineNoMatchWarning: "", alertHeadlineNoMatchWarning: "",
alertCopyNoMatchWarning: "", alertCopyNoMatchWarning: "",
matchingIndirectly: false,
matchFound: null, // null = no attempted match, true = match was found, false = match was not found matchFound: null, // null = no attempted match, true = match was found, false = match was not found
enterPressed: false,
}; };
}, },
computed: { computed: {
@ -235,15 +233,17 @@ export default {
}); });
addressField1.addEventListener("keydown", (e) => { addressField1.addEventListener("keydown", (e) => {
if (e.code === "Enter" || e.code === "NumpadEnter") { if (e.code === "Enter" || e.code === "NumpadEnter") {
const selectedItem = document.querySelector(".pac-container .pac-item-selected"); const selectedItem = document.querySelector(
".pac-container .pac-item-selected"
);
if (selectedItem !== null) { if (selectedItem !== null) {
// Fill-in the address using selected item in the list. // Fill-in the address using selected item in the list.
fillInAddress(selectedItem); fillInAddress(selectedItem);
} else { } else {
// Fill-in the address using first item in the list. // Fill-in the address using first item in the list.
fillInAddressUsingFirstItem(); fillInAddressUsingFirstItem();
} }
} else { } else {
return; return;
} }
@ -265,7 +265,6 @@ export default {
// Fill-in the address using first item in the list. // Fill-in the address using first item in the list.
fillInAddressUsingFirstItem(); fillInAddressUsingFirstItem();
} }
}); });
function fillInAddressUsingFirstItem() { function fillInAddressUsingFirstItem() {