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

👤 fix: Use user?.username if user?.name is undefined #2511

Merged

Conversation

ilsubyeega
Copy link
Contributor

Summary

This PR is a patch to show names to users who don't have a user?.name but have a user?.username. I encountered this issue using Github SSO for my account.

This issue might need a patch in the future to fill username to name property in server-side SSO integration

Change Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Translation update
  • Documentation update

Testing

I've tested messages and navlinks, but icon (i have no idea how to create it now).

Checklist

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have commented in any complex areas of my code
  • I have made pertinent documentation changes
  • My changes do not introduce new warnings
  • I have written tests demonstrating that my changes are effective or that my feature works
  • Local unit tests pass with my changes
  • Any changes dependent on mine have been merged and published in downstream modules.
  • New documents have been locally validated with mkdocs

@ilsubyeega ilsubyeega changed the title fix: Use user?.username if user?.name is undefined on profile section fix: Use user?.username if user?.name is undefined Apr 24, 2024
@berry-13
Copy link
Collaborator

Thanks! I’m not sure why I used the name 🤔

@danny-avila danny-avila changed the title fix: Use user?.username if user?.name is undefined 👤 fix: Use user?.username if user?.name is undefined Apr 24, 2024
@danny-avila danny-avila merged commit 667f5f9 into danny-avila:main Apr 24, 2024
1 check passed
@ilsubyeega ilsubyeega deleted the use-username-if-user-name-is-undefined branch April 25, 2024 05:22
danny-avila pushed a commit that referenced this pull request Aug 5, 2024
* Use `user?.username` if `user?.name` is undefined

* Add useLocalize hook to Icon component
kenshinsamue pushed a commit to intelequia/LibreChat that referenced this pull request Sep 17, 2024
…#2511)

* Use `user?.username` if `user?.name` is undefined

* Add useLocalize hook to Icon component
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.

3 participants