Skip to content

Commit

Permalink
fix(support): avoid error when trying to submit report without being …
Browse files Browse the repository at this point in the history
…logged in (#2336)
  • Loading branch information
sleidig authored Apr 11, 2024
1 parent ae299b4 commit 160ad67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/core/support/support/support.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class SupportComponent implements OnInit {
sendReport() {
// This is sent even without submitting the crash report.
Sentry.captureMessage("report information", {
user: { name: this.sessionInfo.name },
user: { name: this.sessionInfo?.name },
level: "debug",
extra: {
currentUser: this.currentUser?.getId(),
Expand All @@ -147,7 +147,7 @@ export class SupportComponent implements OnInit {
});
Sentry.showReportDialog({
user: {
name: this.sessionInfo.name,
name: this.sessionInfo?.name,
email: "example@email.com",
},
title: $localize`:Title user feedback dialog:Support request`,
Expand Down

0 comments on commit 160ad67

Please sign in to comment.