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 default full name in self-registration form #2629

Merged
merged 1 commit into from
Jul 28, 2024

Conversation

tom93
Copy link
Contributor

@tom93 tom93 commented Jul 26, 2024

From the commit message:

When the full name is not specified, the code is supposed to set it to the username. But that wasn't working because the code was checking for null but the full name is set to an empty string.

Fix this by checking for either an empty string or null (casting null to string returns an empty string).

When the full name is not specified, the code is supposed to set it to
the username. But that wasn't working because the code was checking
for `null` but the full name is set to an empty string.

Fix this by checking for either an empty string or `null` (casting
`null` to string returns an empty string).
@meisterT meisterT added this pull request to the merge queue Jul 28, 2024
Merged via the queue into DOMjudge:main with commit cc3271e Jul 28, 2024
26 checks passed
@tom93 tom93 deleted the pr/fix-default-name-registration branch August 5, 2024 16:15
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