src/applications/check-in/utils/analytics/index.js
Function captureError
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const captureError = (error, details) => {
if (error instanceof Error) {
Sentry.withScope(scope => {
const { token } = details;
if (token) {