diff --git a/packages/core/src/utils/breadcrumbsUtils.ts b/packages/core/src/utils/breadcrumbsUtils.ts index e09a3beaedb1..45802a1903af 100644 --- a/packages/core/src/utils/breadcrumbsUtils.ts +++ b/packages/core/src/utils/breadcrumbsUtils.ts @@ -5,7 +5,7 @@ import type { Breadcrumb } from '@sentry/types'; * @param breadcrumb */ export function assignBreadcrumbLogLevel(breadcrumb: Breadcrumb): Breadcrumb { - const statusCode = breadcrumb?.data?.status_code; + const statusCode = breadcrumb.data?.status_code; if (typeof statusCode !== 'number') { return breadcrumb; }