Revert "fix(sentry): sentry fix error/build"

This reverts commit df1ac5508d.
Rakov 3 years ago
parent df1ac5508d
commit 2210706654
  1. 57582
      package-lock.json
  2. 4
      src/helpers/callApi/logoutIfUnauthorized.tsx

57582
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -5,7 +5,9 @@ export const logoutIfUnauthorized = async (response: Response) => {
const body = await response.json()
if (response.status === 400) {
Sentry.captureException(body)
// OTT api возвращает ошибки вида body.data
// statistic api возвращает ошибки вида body.error
Sentry.captureException(body.data || body.error || body.message)
}
if (response.status === 401 || response.status === 403) {

Loading…
Cancel
Save