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

[WV-166] Fix #3796

Merged
merged 2 commits into from
Dec 13, 2023
Merged

[WV-166] Fix #3796

merged 2 commits into from
Dec 13, 2023

Conversation

cbarnes0
Copy link
Contributor

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

[WV-166]

Changes included this pull request?

A new function is added to addressFunctions.js made in collaboration with Dale. A new set of conditional operations was added to CampaignsHomeLoader.jsx. With each of these in conjunction, if a stateCode isn't recognized (for example, someone is out of the country) they will then be routed to /cs instead of -candidates/cs. There is not longer an issue with the header not appearing and the expected behavior is happening.

….js in order to load header/navbar when loading candidates page outside of the country. Instead of routing to -candidates/cs when out of the country will route to /cs
Copy link
Member

@DaleMcGrew DaleMcGrew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @cbarnes0! 👍

export function isValidStateCode (incomingStateCode) {
if (incomingStateCode) {
// Log incoming State Code
console.log('incomingStateCode:', incomingStateCode);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please comment out console.log's like this in future commits.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do! Sorry about that. I thought I got them all!

@DaleMcGrew DaleMcGrew merged commit cbeac88 into wevote:develop Dec 13, 2023
4 checks passed
ivanko22 pushed a commit to ivanko22/WebApp that referenced this pull request Dec 17, 2023
* [WV-166] changes made in CampaignsHomeLoader.jsx and addressFunctions.js in order to load header/navbar when loading candidates page outside of the country. Instead of routing to -candidates/cs when out of the country will route to /cs

* [WV-166] cleaning up commits etc.
anup2307 pushed a commit to anup2307/WebApp that referenced this pull request Dec 19, 2023
* [WV-166] changes made in CampaignsHomeLoader.jsx and addressFunctions.js in order to load header/navbar when loading candidates page outside of the country. Instead of routing to -candidates/cs when out of the country will route to /cs

* [WV-166] cleaning up commits etc.
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.

2 participants