actions/me: do it with a const
This commit is contained in:
parent
20013cf712
commit
ce73b30237
1 changed files with 5 additions and 8 deletions
|
@ -50,14 +50,11 @@ export function patchMe(params, formData = false) {
|
|||
return (dispatch, getState) => {
|
||||
dispatch(patchMeRequest());
|
||||
|
||||
let options = {};
|
||||
if (formData) {
|
||||
options = {
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data',
|
||||
},
|
||||
};
|
||||
}
|
||||
const options = formData ? {
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data',
|
||||
},
|
||||
} : {};
|
||||
|
||||
return api(getState)
|
||||
.patch('/api/v1/accounts/update_credentials', params, options)
|
||||
|
|
Loading…
Reference in a new issue