Fix mandatory field handling in claim code form
This commit is contained in:
parent
f06c0e7c1b
commit
cb19a5dba5
1 changed files with 2 additions and 0 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Reference in a new issue