Skip to content

fix: username never falling back to email#257

Merged
tale merged 1 commit intotale:mainfrom
gabe565:fix-fallback-user-email
Jun 23, 2025
Merged

fix: username never falling back to email#257
tale merged 1 commit intotale:mainfrom
gabe565:fix-fallback-user-email

Conversation

@gabe565
Copy link
Contributor

@gabe565 gabe565 commented Jun 20, 2025

Hey! #237 doesn't work correctly since username isn't actually null or undefined. When unset, it is an empty string, which doesn't trigger a fallback with a nullish coalescing operator. This PR changes the fallback to be a logical or, which will fallback when username is set to "".

@gabe565 gabe565 mentioned this pull request Jun 21, 2025
@tale tale merged commit 779af42 into tale:main Jun 23, 2025
3 checks passed
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