bailout addded to navigatewithsingle

and a copilot suggestion
This commit is contained in:
Bill Richardson 2026-07-23 11:23:33 -04:00
parent 9f32e9df51
commit 0dafce88a3
2 changed files with 7 additions and 2 deletions

View file

@ -11,8 +11,9 @@ export function hasYMMExperimentPageSettingEnabled() {
}
export function hasYMMExperimentSettingEnabled() {
return experimentMixin.methods.hasSettingEqualTo(experimentSettings.ISS_YMMS_VIN_REQUIRED_PAGE_ENABLED, 'true')
|| experimentMixin.methods.hasSettingEqualTo(experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED, 'true');
return ymmIsVinRequired()
&& (experimentMixin.methods.hasSettingEqualTo(experimentSettings.ISS_YMMS_VIN_REQUIRED_PAGE_ENABLED, 'true')
|| experimentMixin.methods.hasSettingEqualTo(experimentSettings.ISS_YMMS_VIN_REQUIRED_BAILOUT_ENABLED, 'true'));
}
function ymmIsVinRequired() {

View file

@ -9,6 +9,10 @@ export default {
let result;
if (this.mainStore.order.vehicle.vinRequired) {
result = await useMainStore().getPartsOrQuestionsV2();
if (result.data.partsOrQuestions.length === 0) {
this.navigateBailout(bailoutMessage.YMMNotFound('No Parts Returned'));
return;
}
} else {
result = await useMainStore().getPartsOrQuestions();
}