CSR-1816 | Refresh on payment-method breaks saveSession

Made sure that the saveSessionPromise is not invalidated by a refresh on payment-method
This commit is contained in:
Scott Kiener 2023-11-21 10:02:28 -05:00
parent 6125d8a00e
commit 637919abd2

View file

@ -64,7 +64,8 @@ const routes = [
// On entering the funnel "fresh", read cookie information, decide what to do next. payment pages used to return from safelitehop so exclude here
else if (
from.redirectedFrom === undefined &&
!to.query.fmgPage.startsWith("payment")
!to.query.fmgPage !== "payment" &&
!to.query.fmgPage !== "payment-pia-return"
) {
// clear the saveSessionPromise - if it exists in the vuex store but a new instance was created
// the saveSessionPromise will no longer point to a valid promise