Fix #5224 Seeing 'Invalid UUID string: name' when using Custom OIDC (#5354)

This commit is contained in:
Vivek Ratnavel Subramanian 2022-06-08 00:30:00 -07:00 committed by GitHub
parent b4ffc36e89
commit 3ee3db8bf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,7 +168,8 @@ export const getNameFromEmail = (email: string) => {
if (email?.match(validEmailRegEx)) {
return email.split('@')[0];
} else {
return '';
// if the string does not conform to email format return the string
return email;
}
};