CSR-690 Fix issue with part-questions back

This commit is contained in:
Katie 2022-08-02 15:32:11 -04:00
parent 6359139342
commit 7d7896a012
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,6 @@ export function getDateForSavedSessionTimeout() {
/** Function to get saved session timeout date based on values in the cookie */
function getSavedSessionTimeoutDate() {
console.log("getFunnelCookie()?.LastTouched: ", getFunnelCookie()?.LastTouched)
let lastTouched = new Date(getFunnelCookie()?.LastTouched);
lastTouched = lastTouched ? lastTouched : new Date().toUTCString();
let savedSessionTimeoutDate = lastTouched;

View file

@ -175,7 +175,8 @@ export default {
}
},
arePagePrerequisitesValid() {
return Object.keys(store.getters.pageData(fmgPageValues.PART_QUESTIONS)).length > 0;
const partQuestionsFromPageData = store.getters.pageData(fmgPageValues.PART_QUESTIONS);
return partQuestionsFromPageData && Object.keys(partQuestionsFromPageData).length > 0;
},
},
watch: {