Regression: Team name validation on Create Team Modal (#27345)

pull/26717/head^2
Douglas Fabris 3 years ago committed by GitHub
parent 80fb0731ae
commit ea58d2cc85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/meteor/client/sidebar/header/CreateTeam/CreateTeamModal.tsx

@ -42,7 +42,7 @@ const CreateTeamModal = ({ onClose }: { onClose: () => void }): ReactElement =>
return;
}
if (!teamNameRegex?.test(name)) {
if (teamNameRegex && !teamNameRegex?.test(name)) {
return t('error-invalid-name');
}

Loading…
Cancel
Save