Skip to content

Commit dc2f879

Browse files
committed
Fix error boundary analytics to use correct function
1 parent 29137aa commit dc2f879

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -545,12 +545,10 @@ 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 status check failure event
549+
// which doesn't include misleading feedback metrics
550+
reportSupportFeedbackStatusCheckFailed({
550551
ticketId: this.props.ticketId,
551-
rating: 0,
552-
hasFeedback: false,
553-
feedbackLength: 0,
554552
errorMessage: `Error boundary: ${_error.message}`,
555553
errorType: "unknown",
556554
});

0 commit comments

Comments
 (0)