Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: going from previous address to confirm removes the option to … #137

Merged

Conversation

MattBidewell
Copy link
Contributor

Proposed changes

What changed

Change the logic that shows the radio buttons which prompt for more information.

Why did it change

Previous logic, would only show the button when the user hadn't been into the previous journey and when they triggered the more information logic.
This proves to be a problem when entering the previous address journey and then returning back to the confirmation page. A simple fix for this is to only show the radio buttons when we dont have any previous addresses and the validFrom value trips the more information logic. This way they should always end up seeing the radio button as long as they dont add an additional address and the date they provide is recent.

@MattBidewell MattBidewell requested a review from a team as a code owner May 18, 2022 18:02
@MattBidewell MattBidewell force-pushed the Bugfix-back-breaks-going-from-previous-to-confirm branch from bea07fc to 09a8c29 Compare May 19, 2022 09:45
@sonarcloud
Copy link

sonarcloud bot commented May 19, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@MattBidewell MattBidewell merged commit 1379089 into main May 19, 2022
@MattBidewell MattBidewell deleted the Bugfix-back-breaks-going-from-previous-to-confirm branch May 19, 2022 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants