From 972ae46d45c2a90420fc75f2c63b34ed43e273fe Mon Sep 17 00:00:00 2001 From: xmflsct Date: Sun, 8 Jan 2023 17:56:34 +0100 Subject: [PATCH] Fix #604 --- src/utils/api/helpers/index.ts | 2 +- src/utils/push/useConnect.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/api/helpers/index.ts b/src/utils/api/helpers/index.ts index bb160942..5f5999a0 100644 --- a/src/utils/api/helpers/index.ts +++ b/src/utils/api/helpers/index.ts @@ -27,9 +27,9 @@ const handleError = if (error?.response) { if (config?.captureResponse) { + Sentry.setTag('error_status', error.response.status) Sentry.setContext('Error response', { data: error.response.data, - status: error.response.status, headers: error.response.headers }) } diff --git a/src/utils/push/useConnect.ts b/src/utils/push/useConnect.ts index b3f83da3..d583c165 100644 --- a/src/utils/push/useConnect.ts +++ b/src/utils/push/useConnect.ts @@ -96,7 +96,7 @@ const pushUseConnect = () => { ) useEffect(() => { - Sentry.setContext('Push', { expoToken, pushEnabledCount }) + Sentry.setTags({ expoToken, pushEnabledCount }) if (expoToken && pushEnabledCount) { connectQuery.refetch()