mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Improved translation response
This commit is contained in:
@ -53,7 +53,9 @@ const apiTooot = async <T = unknown>({
|
||||
Accept: '*/*',
|
||||
...headers
|
||||
},
|
||||
...(body && { data: body })
|
||||
...(body && { data: body }),
|
||||
validateStatus: status =>
|
||||
url.includes('translate') ? status < 500 : status === 200
|
||||
})
|
||||
.then(response => {
|
||||
return Promise.resolve({
|
||||
|
Reference in New Issue
Block a user