mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fixed #108
This commit is contained in:
@ -71,11 +71,10 @@ const mutationFunction = async ({ type, data }: MutationVarsProfile) => {
|
||||
})
|
||||
} else if (type === 'avatar' || type === 'header') {
|
||||
formData.append(type, {
|
||||
// @ts-ignore
|
||||
uri: data,
|
||||
uri: `file://${data}`,
|
||||
name: 'image/jpeg',
|
||||
type: 'image/jpeg'
|
||||
})
|
||||
} as any)
|
||||
} else {
|
||||
// @ts-ignore
|
||||
formData.append(type, data)
|
||||
|
Reference in New Issue
Block a user