Merge pull request #1088 from Safelite/feature/humphries/address-not-permissible-fix
Fix to properly remove the home address option from the vehicle lookup
This commit is contained in:
commit
9bc40980d8
1 changed files with 2 additions and 1 deletions
|
|
@ -62,7 +62,8 @@ export default {
|
|||
const answers = this.getCmsContent(this.cmsWidgetName, '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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue