mirror of
https://github.com/tooot-app/app
synced 2025-01-20 13:10:15 +01:00
Fix #604
This commit is contained in:
parent
4cadeb6a6f
commit
972ae46d45
@ -27,9 +27,9 @@ const handleError =
|
|||||||
|
|
||||||
if (error?.response) {
|
if (error?.response) {
|
||||||
if (config?.captureResponse) {
|
if (config?.captureResponse) {
|
||||||
|
Sentry.setTag('error_status', error.response.status)
|
||||||
Sentry.setContext('Error response', {
|
Sentry.setContext('Error response', {
|
||||||
data: error.response.data,
|
data: error.response.data,
|
||||||
status: error.response.status,
|
|
||||||
headers: error.response.headers
|
headers: error.response.headers
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,7 @@ const pushUseConnect = () => {
|
|||||||
)
|
)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
Sentry.setContext('Push', { expoToken, pushEnabledCount })
|
Sentry.setTags({ expoToken, pushEnabledCount })
|
||||||
|
|
||||||
if (expoToken && pushEnabledCount) {
|
if (expoToken && pushEnabledCount) {
|
||||||
connectQuery.refetch()
|
connectQuery.refetch()
|
||||||
|
Loading…
Reference in New Issue
Block a user