Skip to content

Commit

Permalink
add more tracking data
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh committed Jul 18, 2023
1 parent 7090e4f commit fd43acd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/iamError.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { captureException } from '@sentry/react'
import { AxiosError } from 'axios'

import { BFF_API, ENV_LEVEL } from 'constants/env'
import { BFF_API, ENV_KEY, ENV_LEVEL } from 'constants/env'
import { AGGREGATOR_API_PATHS } from 'constants/index'
import { ENV_TYPE } from 'constants/type'

Expand Down Expand Up @@ -52,6 +52,9 @@ export const checkIamDown = (axiosErr: AxiosError) => {
statusCode,
message: axiosErr?.message,
code: axiosErr?.code,
tokenInfoSignIn: localStorage[`${ENV_KEY}_o2_sign_in`],
tokenInfoGuest: localStorage[`${ENV_KEY}_o2_guest`],
profileInfo: localStorage.redux_localstorage_simple_profile,
}
const apiUrl = axiosErr?.config?.url ?? ''

Expand Down

0 comments on commit fd43acd

Please sign in to comment.