1
0
Fork 0
forked from srxl/akkoma-fe

Always include bio in updates, because it might be empty (optional)

This commit is contained in:
Ekaterina Vaartis 2018-02-21 23:33:04 +03:00
parent e45cb91e24
commit cfde2fe439

View file

@ -128,7 +128,8 @@ const updateProfile = ({credentials, params}) => {
const form = new FormData()
each(params, (value, key) => {
if (value) {
if (key === 'description' || /* Always include description, because it might be empty */
value) {
form.append(key, value)
}
})