Skip to content

Commit 6e4abf3

Browse files
Update apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/support/_components/SupportCaseDetails.tsx
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com> Signed-off-by: Gi <[email protected]>
1 parent e3b3bf4 commit 6e4abf3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/support/_components/SupportCaseDetails.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -545,14 +545,13 @@ class FeedbackErrorBoundary extends Component<
545545
}
546546

547547
componentDidCatch(_error: Error, _errorInfo: { componentStack: string }) {
548-
// Report the error to analytics
549-
reportSupportFeedbackFailed({
548+
// Report the error to analytics using a boundary-specific event
549+
// that doesn't include potentially misleading feedback metrics
550+
reportErrorBoundaryCatch({
550551
ticketId: this.props.ticketId,
551-
rating: 0, // default value
552-
hasFeedback: false, // default value
553-
feedbackLength: 0, // default value
554552
errorMessage: `Error boundary: ${_error.message}`,
555553
errorType: "unknown",
554+
componentStack: _errorInfo.componentStack,
556555
});
557556
}
558557

0 commit comments

Comments
 (0)