use consistent quotes in object keys

This commit is contained in:
Ben Wheeler 2019-09-03 17:41:22 -04:00
parent ce5558f8e2
commit f693728c1c

View file

@ -52,27 +52,21 @@ class JoinFlow extends React.Component {
uri: '/accounts/register_new_user/', uri: '/accounts/register_new_user/',
method: 'post', method: 'post',
useCsrf: true, useCsrf: true,
/* eslint-disable quote-props */
formData: { formData: {
username: formData.username, 'username': formData.username,
email: formData.email, 'email': formData.email,
password: formData.password, 'password': formData.password,
birth_month: formData.birth_month, 'birth_month': formData.birth_month,
birth_year: formData.birth_year, 'birth_year': formData.birth_year,
'g-recaptcha-response': null, 'g-recaptcha-response': null,
gender: ( 'gender': formData.gender,
formData.gender === 'other' ? 'country': formData.country,
formData.genderOther : 'subscribe': true,
formData.gender 'is_robot': formData.yesno
),
country: formData.country,
subscribe: true,
is_robot: formData.yesno
// no need to include csrfmiddlewaretoken; will be provided in // no need to include csrfmiddlewaretoken; will be provided in
// X-CSRFToken header, which scratchr2 looks for in // X-CSRFToken header, which scratchr2 looks for in
// scratchr2/middleware/csrf.py line 237. // scratchr2/middleware/csrf.py line 237.
} }
/* eslint-enable quote-props */
}, (err, body, res) => { }, (err, body, res) => {
this.setState({waiting: false}, () => { this.setState({waiting: false}, () => {
let errStr = ''; let errStr = '';