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

[BUG] After login noticing that invitation routes are taking null for email #78

Open
rjtbansal opened this issue Jun 8, 2020 · 1 comment
Assignees

Comments

@rjtbansal
Copy link
Collaborator

GET http://localhost:3001/invitations/user/null/contacts?q= 401 (Unauthorized)
GET http://localhost:3001/invitations/user/requests/null 401 (Unauthorized)
GET http://localhost:3001/invitations/user/null 401 (Unauthorized)
@rjtbansal rjtbansal self-assigned this Jun 8, 2020
@rjtbansal
Copy link
Collaborator Author

The app was functioning even before this but too many 401 errors would show up in the console. So the simple fix was to just check if email exists. When it finally does after re-rendering via useEffect, it then calls the invitation APIs thereby no longer throwing such an error

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

No branches or pull requests

1 participant