mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
use consistent quotes in object keys
This commit is contained in:
parent
ce5558f8e2
commit
f693728c1c
1 changed files with 9 additions and 15 deletions
|
@ -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 = '';
|
||||||
|
|
Loading…
Reference in a new issue