Skip to content

Commit

Permalink
error : this.child._openSnackBar(e.graphQLErrors[0].message) when ser…
Browse files Browse the repository at this point in the history
…ver is not configured
  • Loading branch information
alan345 committed May 22, 2018
1 parent c388023 commit 45f318f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion react/src/components/user/auth/Signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,11 @@ class Signup extends Component {

})
.catch((e) => {
this.child._openSnackBar(e.graphQLErrors[0].message)
if(e.graphQLErrors.length) {
this.child._openSnackBar(e.graphQLErrors[0].message)
} else {
this.child._openSnackBar('error: No connection with server')
}
})

}
Expand Down

0 comments on commit 45f318f

Please sign in to comment.