Skip to content
This repository was archived by the owner on Jun 10, 2019. It is now read-only.

Commit 66bf36b

Browse files
RickRalexspence
authored andcommitted
Reverting 1477051. Fixes #176
1 parent 1426ac4 commit 66bf36b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/scenes/home/signup/signup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class SignUp extends Component {
6363
validatePasswordConfirm = value =>
6464
value === '' || value === this.state.password;
6565

66-
handleOnSubmit = (e) => {
66+
handleOnClick = (e) => {
6767
e.preventDefault = true;
6868

6969
if (this.isFormValid()) {
@@ -127,7 +127,7 @@ class SignUp extends Component {
127127
/>
128128
{this.state.error && <span>There was an error joining Operation Code: {this.state.error}</span>}
129129
{this.state.success && <Redirect to="/thanks" />}
130-
<FormButton className={styles.joinButton} text="Join" onSubmit={this.handleOnSubmit} theme="red" />
130+
<FormButton className={styles.joinButton} text="Join" onClick={this.handleOnClick} theme="red" />
131131
</Form>
132132
</Section>
133133
);

src/shared/components/form/formButton/formButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class FormButton extends Component {
1111
[`${this.props.className}`]: this.props.className
1212
});
1313
return (
14-
<button type="submit" className={classes} onSubmit={this.props.onClick}>{this.props.text}</button>
14+
<button type="button" className={classes} onClick={this.props.onClick}>{this.props.text}</button>
1515
);
1616
}
1717
}

0 commit comments

Comments
 (0)