API & Client: Profile update

This commit is contained in:
SamR1
2018-01-01 17:50:12 +01:00
parent 2c4f3c4462
commit 8e21fc4112
6 changed files with 68 additions and 8 deletions

View File

@ -49,6 +49,7 @@ const message = (state = initial.message, action) => {
switch (action.type) {
case 'AUTH_ERROR':
case 'PROFILE_ERROR':
case 'PWD_ERROR':
return action.message
case 'LOGOUT':
case 'PROFILE_SUCCESS':

View File

@ -28,7 +28,9 @@ export default {
lastName: '',
bio: '',
location: '',
birthDate: ''
birthDate: '',
password: '',
passwordConf: ''
}
},
}