Skip to content

Commit

Permalink
fix(type error): check existence of internal context (#1136)
Browse files Browse the repository at this point in the history
  • Loading branch information
domsteinbach committed Jul 10, 2023
1 parent d9acc5a commit c32f8b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dsp-app/src/app/main/services/datadog-rum.service.ts
Expand Up @@ -68,7 +68,7 @@ export class DatadogRumService {
identifier: string,
identifierType: 'iri' | 'email' | 'username'
): void {
if (datadogRum.getInternalContext().application_id) {
if (datadogRum.getInternalContext()?.application_id) {
datadogRum.setUser({
id: identifier,
identifierType: identifierType,
Expand Down

0 comments on commit c32f8b8

Please sign in to comment.