1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Fix translation error

When there is body, the method has to be `post`
This commit is contained in:
Zhiyuan Zheng
2021-12-08 23:11:51 +01:00
parent 6c6dc0ce6a
commit d2ce0aafe8
3 changed files with 6 additions and 20 deletions

View File

@ -16,7 +16,7 @@ export type Params = {
sentry?: boolean
}
export const TOOOT_API_DOMAIN = __DEV__ ? 'testapi.tooot.app' : 'testapi.tooot.app'
export const TOOOT_API_DOMAIN = __DEV__ ? 'testapi.tooot.app' : 'api.tooot.app'
const apiTooot = async <T = unknown>({
method,
@ -57,7 +57,7 @@ const apiTooot = async <T = unknown>({
})
.catch(error => {
if (sentry) {
Sentry.Native.setExtras(error.response)
Sentry.Native.setExtras(error.response || error.request)
Sentry.Native.captureException(error)
}