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