Call save session with every route

This commit is contained in:
brydon1 2023-08-28 14:06:46 -04:00
parent 521485ad6e
commit 260287e6a6
2 changed files with 2 additions and 3 deletions

View file

@ -88,6 +88,7 @@ router.afterEach((to, from) => {
const store = useMainStore();
// Update lastPageVisited in the store
store.updateLastPageVisited(to.name);
store.saveSession();
if (to.query.issPage !== issPageValues.ENTRY_PAGE) {
// Push page view to GA

View file

@ -81,10 +81,9 @@ const getDefaultState = () => ({
zipCode: null,
zipCodeCtu: null
},
// otherParts vs serverData
lineItems: {
glassParts: null,
otherParts: null, // TODO what is this?
otherParts: null,
supportingItems: null,
vaps: null
},
@ -98,7 +97,6 @@ const getDefaultState = () => ({
},
referralNumber: null,
referralDate: null,
// DNE in FMG
contactInfo: {
firstName: null,
lastName: null,