show button when experiment is off

This commit is contained in:
Bill Richardson 2026-07-14 14:28:10 -04:00
parent 00df4c42c7
commit 86d93faa9b
2 changed files with 4 additions and 1 deletions

View file

@ -15,6 +15,7 @@
// Import Other Supporting Files // Import Other Supporting Files
import { useMainStore } from '@/store'; import { useMainStore } from '@/store';
import { experimentSettings } from '@/constants/experiments';
import vinLookupMethodSelections from '@/constants/vin-lookup-methods'; import vinLookupMethodSelections from '@/constants/vin-lookup-methods';
import settleAllPromises from '@/helpers/layout-helper'; import settleAllPromises from '@/helpers/layout-helper';
import globalRules from '@/constants/global-rules'; import globalRules from '@/constants/global-rules';
@ -66,8 +67,9 @@ export default {
answers.splice(homeAddressIndex, 1); answers.splice(homeAddressIndex, 1);
} }
const ymmsBailoutEnabled = this.getSettingValue(experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED) === 'true';
const isVinRequired = useMainStore().order.vehicle.vinRequired; const isVinRequired = useMainStore().order.vehicle.vinRequired;
if (isVinRequired) { if (isVinRequired && ymmsBailoutEnabled) {
const vinIndex = answers.findIndex(answer => answer.Name === vinLookupMethodSelections.NOVIN); const vinIndex = answers.findIndex(answer => answer.Name === vinLookupMethodSelections.NOVIN);
if (vinIndex >= 0) { if (vinIndex >= 0) {
answers.splice(vinIndex, 1); answers.splice(vinIndex, 1);

View file

@ -179,6 +179,7 @@ export default {
const ymmsBailoutEnabled = this.getSettingValue(experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED) === 'true'; const ymmsBailoutEnabled = this.getSettingValue(experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED) === 'true';
if (ymmsBailoutEnabled && this.mainStore.order.vehicle.vinRequired) { if (ymmsBailoutEnabled && this.mainStore.order.vehicle.vinRequired) {
this.mainStore.order.vehicle.vin = this.vin;
this.mainStore.setBailout(bailoutMessage.YMMNotFound()); this.mainStore.setBailout(bailoutMessage.YMMNotFound());
return this.$router.navigate( return this.$router.navigate(
this.navigationScenarios.BAILOUT, this.navigationScenarios.BAILOUT,