CASH-307 switch the navigate call to perform a save.  The isInsurance property was not being saved to SV2, only to the store.  So a refresh on the page would reload from sv2 and the field would be false triggering the page prereq error.
This commit is contained in:
CarlNation 2025-02-25 06:23:40 -05:00
parent 6c5eeca3c3
commit 4f995a1ad0
3 changed files with 11 additions and 13 deletions

View file

@ -195,9 +195,9 @@ export default {
left: -9999px;
+ .package-label.pricing-by-day-pkg-lbl {
@include media-breakpoint-up(md) {
padding-bottom: 0.75rem;
}
@include media-breakpoint-up(md) {
padding-bottom: 0.75rem;
}
}
+ .package-label.pricing-by-day-pkg-lbl.adjust-top {
@ -220,9 +220,9 @@ export default {
}
&:after {
top: 20px;
}
@include media-breakpoint-up(md) {
padding-bottom: 0.75rem;
}
@include media-breakpoint-up(md) {
padding-bottom: 0.75rem;
}
}
@ -242,8 +242,8 @@ export default {
min-height: 52px;
max-height: 126px;
@include media-breakpoint-up(md) {
max-height: 500px;
padding-bottom: 3rem;
max-height: 500px;
padding-bottom: 3rem;
}
transition: max-height 0.25s ease-in;

View file

@ -571,11 +571,9 @@ export default {
} else {
if (this.paymentMethod == paymentMethods.INSURANCE) {
this.dispatchStoreAction(this.storeActions.SAVE_PAYMENT_TYPE, true, false);
this.$router.navigateWithoutSaving(
return this.$router.navigateWithSaving(
this.navigationScenarios.CLICKED_INSURANCE,
this.$route,
{},
{ [routerParams.DISPLAY_PIA_ALERT]: false }
this.$route
);
} else {
this.setupPia();

View file

@ -851,7 +851,7 @@ function setupMocks({ mountOptionsMockData, props = mockProps }) {
},
},
};
mountOptionsMockData = Object.assign(mountOptionsMockDataDefault, mountOptionsMockData);
const mountOptions = getMountOptions(mountOptionsMockData);