From a51a8e358be0f1d6aa59796685a0a6c4db38dcb2 Mon Sep 17 00:00:00 2001 From: Bryan Mauger Date: Tue, 26 Mar 2024 08:47:13 -0400 Subject: [PATCH] Format code. --- .../insurance-company-question.vue | 40 +++++++++---------- .../insurance-company/insurance-company.vue | 1 + 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/src/layouts/insurance-company/insurance-company-question.vue b/src/layouts/insurance-company/insurance-company-question.vue index 0d4286241..b69a77d49 100644 --- a/src/layouts/insurance-company/insurance-company-question.vue +++ b/src/layouts/insurance-company/insurance-company-question.vue @@ -45,7 +45,7 @@ export default { data() { return { selectedAccountName: "", - } + }; }, computed: { selectedAccountNumber: { @@ -61,30 +61,28 @@ export default { }, }, searchableInsuranceCompanyList() { - return this.originalList.map( - (insuranceCompany) => { - insuranceCompany.altTerms = ""; + return this.originalList.map((insuranceCompany) => { + insuranceCompany.altTerms = ""; - termMapping.forEach((matchingTerm) => { - if ( - insuranceCompany.accountName - .toUpperCase() - .includes(matchingTerm.term.toUpperCase()) - ) { - insuranceCompany.altTerms = - insuranceCompany.altTerms + matchingTerm.altTerm?.toUpperCase() + " "; - } - }); - return insuranceCompany; - } - ); - } + termMapping.forEach((matchingTerm) => { + if ( + insuranceCompany.accountName + .toUpperCase() + .includes(matchingTerm.term.toUpperCase()) + ) { + insuranceCompany.altTerms = + insuranceCompany.altTerms + matchingTerm.altTerm?.toUpperCase() + " "; + } + }); + return insuranceCompany; + }); + }, }, methods: { findMatches(request, response) { const matches = []; const term = request?.term?.toUpperCase(); - this.searchableInsuranceCompanyList.forEach((company, index) => { + this.searchableInsuranceCompanyList.forEach((company, index) => { if ( company.accountName.indexOf(term) !== -1 || company.altTerms.indexOf(term) !== -1 @@ -105,8 +103,8 @@ export default { }); if (selectedItem) { - this.selectedAccountName = parentAccountName; - this.selectedAccountNumber = selectedItem[0].parentAccountNumber; + this.selectedAccountName = parentAccountName; + this.selectedAccountNumber = selectedItem[0].parentAccountNumber; } else { console.error("Error locating " + parentAccountName); } diff --git a/src/layouts/insurance-company/insurance-company.vue b/src/layouts/insurance-company/insurance-company.vue index 0e9e61b01..7b8310e39 100644 --- a/src/layouts/insurance-company/insurance-company.vue +++ b/src/layouts/insurance-company/insurance-company.vue @@ -80,6 +80,7 @@ export default { return { parentAccountNumber: this.parentAccountNumberFromStore(), originalList: [], + }; }, methods: { parentAccountNumberFromStore() {