Merge branch 'develop' into feat/report-notification

This commit is contained in:
Shpuld Shpuldson 2021-01-05 13:58:52 +02:00
commit ab2c2c66bf
46 changed files with 1289 additions and 457 deletions

View file

@ -162,7 +162,12 @@ const updateProfileImages = ({ credentials, avatar = null, banner = null, backgr
body: form
})
.then((data) => data.json())
.then((data) => parseUser(data))
.then((data) => {
if (data.error) {
throw new Error(data.error)
}
return parseUser(data)
})
}
const updateProfile = ({ credentials, params }) => {