fix error when updating profile
This commit is contained in:
parent
40eb565f2a
commit
8353db33ad
1 changed files with 2 additions and 1 deletions
|
|
@ -226,7 +226,8 @@ const updateProfile = ({ credentials, params }) => {
|
|||
})
|
||||
} else {
|
||||
if (typeof params[name] === 'object') {
|
||||
console.warning('Object detected in updateProfile API call. This will not work, use updateProfileJSON instead.')
|
||||
console.warn('Object detected in updateProfile API call. This will not work, use updateProfileJSON instead.')
|
||||
console.warn('Object:\n' + JSON.stringify(params[name], null, 2))
|
||||
}
|
||||
formData.append(name, params[name]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue