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() {
|
handleSubmit: function() {
|
||||||
if (!this.refs.code.value) {
|
if (!this.refs.code.value) {
|
||||||
alert('Please enter an invitation code or choose "Skip."');
|
alert('Please enter an invitation code or choose "Skip."');
|
||||||
|
return;
|
||||||
} else if (!this.refs.email.value) {
|
} else if (!this.refs.email.value) {
|
||||||
alert('Please enter an email address or choose "Skip."');
|
alert('Please enter an email address or choose "Skip."');
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
|
|
Loading…
Add table
Reference in a new issue