Fix mandatory field handling in claim code form

This commit is contained in:
alexliebowitz 2016-07-04 14:58:00 -04:00 committed by GitHub
parent f06c0e7c1b
commit cb19a5dba5

View file

@ -19,8 +19,10 @@ var ClaimCodePage = React.createClass({
handleSubmit: function() {
if (!this.refs.code.value) {
alert('Please enter an invitation code or choose "Skip."');
return;
} else if (!this.refs.email.value) {
alert('Please enter an email address or choose "Skip."');
return;
}
this.setState({