Moving the duplicate page seen flag set call around to coverage more use cases.

This commit is contained in:
Jeremy-Z 2026-01-22 12:38:05 -05:00
parent 44caf8ab52
commit 59abdfc4c3

View file

@ -137,7 +137,6 @@ export default {
async forwardButtonAction() { async forwardButtonAction() {
// If user clicked foward without selecting an option or user click on "start a new claim" button. // If user clicked foward without selecting an option or user click on "start a new claim" button.
if (this.selectedAnswer == null || this.selectedAnswer === 'NewClaim') { if (this.selectedAnswer == null || this.selectedAnswer === 'NewClaim') {
this.mainStore.updateDuplicateCheckVisited(true);
this.navigateForward(); this.navigateForward();
return; return;
} }
@ -156,6 +155,7 @@ export default {
} }
}, },
navigateForward() { navigateForward() {
this.mainStore.updateDuplicateCheckVisited(true);
if (!this.mainStore.isPolicyLookupSuccessful) { if (!this.mainStore.isPolicyLookupSuccessful) {
this.$router.navigate( this.$router.navigate(
this.navigationScenarios.CLICKED_FORWARD_POLICY_UNVERIFIED, this.navigationScenarios.CLICKED_FORWARD_POLICY_UNVERIFIED,