show button when experiment is off
This commit is contained in:
parent
00df4c42c7
commit
86d93faa9b
2 changed files with 4 additions and 1 deletions
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
// Import Other Supporting Files
|
||||
import { useMainStore } from '@/store';
|
||||
import { experimentSettings } from '@/constants/experiments';
|
||||
import vinLookupMethodSelections from '@/constants/vin-lookup-methods';
|
||||
import settleAllPromises from '@/helpers/layout-helper';
|
||||
import globalRules from '@/constants/global-rules';
|
||||
|
|
@ -66,8 +67,9 @@ export default {
|
|||
answers.splice(homeAddressIndex, 1);
|
||||
}
|
||||
|
||||
const ymmsBailoutEnabled = this.getSettingValue(experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED) === 'true';
|
||||
const isVinRequired = useMainStore().order.vehicle.vinRequired;
|
||||
if (isVinRequired) {
|
||||
if (isVinRequired && ymmsBailoutEnabled) {
|
||||
const vinIndex = answers.findIndex(answer => answer.Name === vinLookupMethodSelections.NOVIN);
|
||||
if (vinIndex >= 0) {
|
||||
answers.splice(vinIndex, 1);
|
||||
|
|
|
|||
|
|
@ -179,6 +179,7 @@ export default {
|
|||
|
||||
const ymmsBailoutEnabled = this.getSettingValue(experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED) === 'true';
|
||||
if (ymmsBailoutEnabled && this.mainStore.order.vehicle.vinRequired) {
|
||||
this.mainStore.order.vehicle.vin = this.vin;
|
||||
this.mainStore.setBailout(bailoutMessage.YMMNotFound());
|
||||
return this.$router.navigate(
|
||||
this.navigationScenarios.BAILOUT,
|
||||
|
|
|
|||
Loading…
Reference in a new issue