mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fix bugs
This commit is contained in:
@ -58,14 +58,14 @@ const apiGeneral = async <T = unknown>({
|
||||
})
|
||||
})
|
||||
.catch(error => {
|
||||
if (sentry && Math.random() < 0.01) {
|
||||
Sentry.Native.setExtras({
|
||||
API: 'general',
|
||||
...(error.response && { response: error.response }),
|
||||
...(error.request && { request: error.request })
|
||||
})
|
||||
Sentry.Native.captureException(error)
|
||||
}
|
||||
// if (sentry && Math.random() < 0.01) {
|
||||
// Sentry.Native.setExtras({
|
||||
// API: 'general',
|
||||
// ...(error.response && { response: error.response }),
|
||||
// ...(error.request && { request: error.request })
|
||||
// })
|
||||
// Sentry.Native.captureException(error)
|
||||
// }
|
||||
|
||||
if (error.response) {
|
||||
// The request was made and the server responded with a status code
|
||||
|
@ -98,14 +98,14 @@ const apiInstance = async <T = unknown>({
|
||||
})
|
||||
})
|
||||
.catch(error => {
|
||||
if (Math.random() < 0.001) {
|
||||
Sentry.Native.setExtras({
|
||||
API: 'instance',
|
||||
...(error.response && { response: error.response }),
|
||||
...(error.request && { request: error.request })
|
||||
})
|
||||
Sentry.Native.captureException(error)
|
||||
}
|
||||
// if (Math.random() < 0.001) {
|
||||
// Sentry.Native.setExtras({
|
||||
// API: 'instance',
|
||||
// ...(error.response && { response: error.response }),
|
||||
// ...(error.request && { request: error.request })
|
||||
// })
|
||||
// Sentry.Native.captureException(error)
|
||||
// }
|
||||
|
||||
if (error.response) {
|
||||
// The request was made and the server responded with a status code
|
||||
|
Reference in New Issue
Block a user