Added duplicate page visit check flag.

This commit is contained in:
Jeremy-Z 2026-07-06 13:17:41 -04:00
parent 760295e3f9
commit 086b1726ac

View file

@ -386,7 +386,8 @@ export default {
}, },
navigateForward() { navigateForward() {
if ((this.mainStore.applicationUser.duplicateOrders?.length > 0 ?? false) if ((this.mainStore.applicationUser.duplicateOrders?.length > 0 ?? false)
&& !this.mainStore.order.loadedFromCookie) { && !this.mainStore.order.loadedFromCookie
&& !this.mainStore.order.visitedDuplicateCheckPage) {
// NOTE: Only navigate to duplicate check page if the user has not already loaded an // NOTE: Only navigate to duplicate check page if the user has not already loaded an
// existing referral from cookie (continue option from cookie popup) and they have not visited the duplicate check page already. // existing referral from cookie (continue option from cookie popup) and they have not visited the duplicate check page already.
// Duplicate orders found; navigating to duplicate check page and skipping save session. // Duplicate orders found; navigating to duplicate check page and skipping save session.