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/wv-45] <back button fix on FindFriendsRoot> & [bugfix/wv-61] <updated code verification text> TEAM REVIEW #3824

Closed
wants to merge 3 commits into from

Conversation

pbnjcub
Copy link
Contributor

@pbnjcub pbnjcub commented Feb 7, 2024

What github.com/wevote/WebApp/issues does this fix?

[bugfix/wv-45]

Changes included this pull request?

I seem to have got the back button working consistently. After adding a bunch of console.log statements to track the state of backButtonOn in FindFriendsRoot.jsx, I did find that it was acting inconsistently, where most of the time the state changed to true, but sometimes it didn’t.

I realized that the state variables all depended on the displayStep, setUpPagePath and nextStepVariables, so i started tracking those with console.log statements. I found that when the backButtonOn’s state stayed false, for some reason setUpPagePath console wouldn’t pop up.

Seeing that setNextStepVariables() set all of the state variables, I looked to see if this was being called in componentDidMount() like it was in componentDidUpdate(). It was not, so I placed setNextStepVariables() in the same part of the code that I saw it was placed in componentDidUpdate(). The back button seems to consistently show up now.

@pbnjcub pbnjcub changed the title [bugfix/wv-45] <back button fix on FindFriendsRoot> TEAM REVIEW [bugfix/wv-45] <back button fix on FindFriendsRoot> & [bugfix/wv-61] <updated code verification text> TEAM REVIEW Feb 9, 2024
@pbnjcub
Copy link
Contributor Author

pbnjcub commented Feb 14, 2024

I've decided to close this pull request and create a new one.

@pbnjcub pbnjcub closed this Feb 14, 2024
@pbnjcub
Copy link
Contributor Author

pbnjcub commented Feb 14, 2024

I closed this pull request because I think I processed it incorrectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant