Always include bio in updates, because it might be empty (optional)
This commit is contained in:
parent
e45cb91e24
commit
cfde2fe439
|
@ -128,7 +128,8 @@ const updateProfile = ({credentials, params}) => {
|
||||||
const form = new FormData()
|
const form = new FormData()
|
||||||
|
|
||||||
each(params, (value, key) => {
|
each(params, (value, key) => {
|
||||||
if (value) {
|
if (key === 'description' || /* Always include description, because it might be empty */
|
||||||
|
value) {
|
||||||
form.append(key, value)
|
form.append(key, value)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue