Fixed issue where picking new referral from cookie popup causes duplicate check page to skip.
This commit is contained in:
parent
433460289c
commit
760295e3f9
1 changed files with 3 additions and 3 deletions
|
|
@ -386,7 +386,9 @@ export default {
|
||||||
},
|
},
|
||||||
navigateForward() {
|
navigateForward() {
|
||||||
if ((this.mainStore.applicationUser.duplicateOrders?.length > 0 ?? false)
|
if ((this.mainStore.applicationUser.duplicateOrders?.length > 0 ?? false)
|
||||||
&& !this.answeredContinueModal) {
|
&& !this.mainStore.order.loadedFromCookie) {
|
||||||
|
// 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.
|
||||||
// Duplicate orders found; navigating to duplicate check page and skipping save session.
|
// Duplicate orders found; navigating to duplicate check page and skipping save session.
|
||||||
this.$router.navigate(
|
this.$router.navigate(
|
||||||
this.navigationScenarios.CLICKED_FORWARD_WITH_DUPLICATES,
|
this.navigationScenarios.CLICKED_FORWARD_WITH_DUPLICATES,
|
||||||
|
|
@ -498,8 +500,6 @@ export default {
|
||||||
},
|
},
|
||||||
startNewReferral() {
|
startNewReferral() {
|
||||||
this.mainStore.issConfig.enableContinueFromCookie = false;
|
this.mainStore.issConfig.enableContinueFromCookie = false;
|
||||||
// Setting this to true so we skip dupe check since the user already decided not to load the previous referral
|
|
||||||
this.mainStore.order.loadedFromCookie = true;
|
|
||||||
this.answeredContinueModal = true;
|
this.answeredContinueModal = true;
|
||||||
this.$refs.continueModal.closeModal();
|
this.$refs.continueModal.closeModal();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue