From c6a65c8d27c1b2d78df88dd33f7e2beae448838d Mon Sep 17 00:00:00 2001 From: Alex Humphries Date: Mon, 16 Feb 2026 15:01:07 -0500 Subject: [PATCH] Fix to properly remove the home address option from the vehicle lookup --- .../vin-lookup-methods/vin-lookup-methods.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/layouts/vehicle-lookup/vin-lookup-methods/vin-lookup-methods.vue b/src/layouts/vehicle-lookup/vin-lookup-methods/vin-lookup-methods.vue index 633dc865..332ba2d7 100644 --- a/src/layouts/vehicle-lookup/vin-lookup-methods/vin-lookup-methods.vue +++ b/src/layouts/vehicle-lookup/vin-lookup-methods/vin-lookup-methods.vue @@ -59,10 +59,14 @@ export default { const isVinbyAddressPermissible = await this.getIsVinbyAddressPermissible(); this.questionTextFromCms = this.getCmsContent(this.cmsWidgetName, 'QuestionText'); + console.log(JSON.parse) + const answers = this.getCmsContent(this.cmsWidgetName, 'Answers'); + console.log(JSON.parse(JSON.stringify(answers))); if (Array.isArray(answers)) { if (!isVinbyAddressPermissible) { - answers.splice(answers.indexOf(vinLookupMethodSelections.HOMEADDRESS), 1); + const homeAddressIndex = answers.findIndex(answer => answer.Name === vinLookupMethodSelections.HOMEADDRESS); + answers.splice(homeAddressIndex, 1); } this.answersFromCms = answers; }