We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02a33f7 commit 1ce97fbCopy full SHA for 1ce97fb
src/components/classrooms/EditUserInClassroomButton.js
@@ -74,7 +74,7 @@ class EditUserInClassroomButton extends Component {
74
userId: teacherId,
75
} = this.props;
76
77
- const trimmedUsername = username;
+ const trimmedUsername = username.trim();
78
79
if (!isUsernameValid(trimmedUsername)) {
80
toastr.error(ERROR_MESSAGE_HEADER, ERROR_INVALID_USERNAME_MESSAGE);
0 commit comments