boolean-uk / team-dev-frontend-client

1 stars 11 forks source link

Fix user registration by updating field names to match server field names #149

Closed dogezen closed 1 year ago

dogezen commented 1 year ago

At the moment, the client is using the following field names for user registration:

//src/constants.js
const constants = {
  token: process.env.REACT_APP_USER_TOKEN,
  user: {
    permittedProperties: [
      'firstName',
      'lastName',
      'email',
      'password',
      'biography',
      'github_url'
    ]
  },
  post: {
    permittedProperties: ['content']
  }
}

However, first_name should be firstName and last_name should be lastName.

Fix

Test

Get the user registration working locally.