SSR-1377 PR Changes

This commit is contained in:
Josh Dassinger 2024-06-25 12:14:03 -05:00
parent 67133af6fc
commit bea5075656
5 changed files with 5 additions and 7 deletions

View file

@ -1,5 +1,5 @@
const submitType = Object.freeze({
REFERRAL: 0,
SAFELITE: 0,
TPA: 1
});

View file

@ -54,9 +54,7 @@ export default {
},
methods: {
getUnmatchedVehicleIcon() {
const category = this.mainStore.hasSubmittedOrder()
? this.mainStore.submittedOrder.vehicle.category
: this.mainStore.order.vehicle.category;
const category = this.mainStore.submittedOrder?.vehicle.category ?? this.mainStore.order.vehicle.category;
switch (category) {
case this.vehicleCategories.CAR:
return this.carUnmatchedVehicleIcon;

View file

@ -120,7 +120,7 @@ export default {
},
mixins: [BaseFormMixin],
async beforeRouteEnter(to, from, next) {
useMainStore().createSubmittedOrder(submitType.REFERRAL);
useMainStore().createSubmittedOrder(submitType.SAFELITE);
// Call APIs
const cmsContentPromise = fetchCmsContentForPage(to.query.issPage);

View file

@ -134,7 +134,7 @@ export default {
}
showIssLoadingModal(false);
useMainStore().createSubmittedOrder(submitType.REFERRAL);
useMainStore().createSubmittedOrder(submitType.SAFELITE);
this.$router.navigate(
this.navigationScenarios.PAY_IN_ADVANCE_SUCCESS,
this.$route

View file

@ -382,7 +382,7 @@ async function GoToConfirmationPage(next, order) {
function getConfirmationPageFromOrder(order) {
switch (order.submitType) {
case submitType.REFERRAL:
case submitType.SAFELITE:
return issPageValues.ORDER_CONFIRMATION;
case submitType.TPA:
return issPageValues.TPA_CONFIRMATION;