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

Only call fetchRepStatus if loggedIn #97172

Closed
holdenhinkle opened this issue Nov 14, 2024 · 0 comments · Fixed by department-of-veterans-affairs/vets-website#33020
Closed

Only call fetchRepStatus if loggedIn #97172

holdenhinkle opened this issue Nov 14, 2024 · 0 comments · Fixed by department-of-veterans-affairs/vets-website#33020
Assignees
Labels
accredited-representation-management-team Accredited Representation Management team frontend mvp Initial version of thing

Comments

@holdenhinkle
Copy link
Collaborator

The call to fetchRepStatus in Appoint a Rep is currently being called for all users, regardless of whether or not they're logged in. If the user is not logged in, this call will result in a 500 error. If Appoint is launched as-is, this will significantly increase the number of errors for the power_of_attorney endpoint.

Only call fetchRepStatus (which in turn calls the power_of_attorney endpoint) if the user is logged in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accredited-representation-management-team Accredited Representation Management team frontend mvp Initial version of thing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants