resolve -> reject because semantics.

This commit is contained in:
Michael Telatynski 2017-07-31 14:22:05 +01:00
parent f310d4446c
commit 62af06104d
No known key found for this signature in database
GPG Key ID: 3F879DA5AD802A5E

View File

@ -112,7 +112,7 @@ export default React.createClass({
this.setState({ this.setState({
usernameError: _t('User names may only contain letters, numbers, dots, hyphens and underscores.'), usernameError: _t('User names may only contain letters, numbers, dots, hyphens and underscores.'),
}); });
return Promise.resolve(); return Promise.reject();
} }
// Check if username is available // Check if username is available