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

feat: CQDG-392 handle affiliation empty #57

Merged
merged 2 commits into from
Sep 28, 2023
Merged

feat: CQDG-392 handle affiliation empty #57

merged 2 commits into from
Sep 28, 2023

Conversation

atoulous
Copy link
Contributor

No description provided.

is: NAME_REGEX,
},
allowNull: true,
validate: { validate: (value: string) => (value ? NAME_REGEX.test(value) : true) },
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

je fais ca car NAME_REGEX fail avec la value vide ''

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

value === '' || NAME_REGEX.test(value)

so that we avoid falsy values such as undefined or similar.

@atoulous atoulous merged commit ad16ffa into main Sep 28, 2023
1 check passed
@atoulous atoulous deleted the feat/cqdg-392b branch September 28, 2023 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants