10BC0 Semantic update to userAddress auth-context state value by johngribbin · Pull Request #282 · TruSat/trusat-frontend · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@johngribbin
Copy link
Collaborator
  • Up until now the default value for user address has been the string value none,
  • This is used by many components to assess if the user was logged in or not.
  • With this change, the default is now undefined (type undefined) and the components that utilize the userAddress value (conditional rendering etc) have all been updated to recognize this change
  • This change not only makes the code more legible but I believe it is just a better practice

@johngribbin
Copy link
Collaborator Author

@Kmoneal Does changing the default state of userAddress from "none" to undefined cause any breaking changes on the backend? If not, i'd like to merge this change. Not a huge priority though, so if it does cause any hassle on backend - we can delay.

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

0