[MM-44161] Show both validation messages when adding new server if both fields are invalid (#2104) (#2105)
(cherry picked from commit 2e740d60bd
)
Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
This commit is contained in:
parent
585e7a1b29
commit
316d4d2714
|
@ -125,7 +125,13 @@ export default class NewTeamModal extends React.PureComponent<Props, State> {
|
|||
const urlError = this.getTeamUrlValidationError();
|
||||
|
||||
if (nameError && urlError) {
|
||||
return 'Name and URL are required.';
|
||||
return (
|
||||
<>
|
||||
{nameError}
|
||||
<br/>
|
||||
{urlError}
|
||||
</>
|
||||
);
|
||||
} else if (nameError) {
|
||||
return nameError;
|
||||
} else if (urlError) {
|
||||
|
|
Loading…
Reference in a new issue