From 7587c6858281d6b65650ebb474664d0549de08ec Mon Sep 17 00:00:00 2001 From: Ben Wheeler Date: Wed, 4 Sep 2019 23:34:17 -0400 Subject: [PATCH] include example of failing response --- src/components/join-flow/join-flow.jsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/components/join-flow/join-flow.jsx b/src/components/join-flow/join-flow.jsx index 879e4b227..989ce7f14 100644 --- a/src/components/join-flow/join-flow.jsx +++ b/src/components/join-flow/join-flow.jsx @@ -44,6 +44,17 @@ class JoinFlow extends React.Component { }); } handleRegistrationResponse (err, body, res) { + // example of failing response: + // [ + // { + // "msg": "This field is required.", + // "errors": { + // "username": ["This field is required."], + // "recaptcha": ["Incorrect, please try again."] + // }, + // "success": false + // } + // ] this.setState({waiting: false}, () => { let errStr = ''; if (!err && res.statusCode === 200) {