Skip to content

Commit d595386

Browse files
committed
fix volunteer magic link error handling
1 parent ef5dbda commit d595386

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Components/forms/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,15 @@ class Forms extends Component {
6363
const dashboardUrl = this.props.location.search
6464
const { userId, code } = this.props.match.params
6565
if (code === 'failed') {
66-
this.setState({
66+
return this.setState({
67+
userId,
6768
showEmailBox: true,
6869
err:
6970
'Failed to verify your email address, due to expire token or server failure. Please use the box below and try again.'
7071
})
7172
}
7273
if (code === 'success') {
73-
this.setState({
74+
return this.setState({
7475
msg: `Thank you for your patient, we will review your application and contact you via email, within 10 days.`
7576
})
7677
}

0 commit comments

Comments
 (0)