We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 766ac4e commit 4c707c3Copy full SHA for 4c707c3
src/components/docFeedback/index.tsx
@@ -59,8 +59,11 @@ export function DocFeedback({pathname}: Props) {
59
setFeedbackSubmitted(true);
60
sessionStorage.setItem(`feedback_${pathname}`, 'submitted');
61
} catch (error) {
62
- // eslint-disable-next-line no-console
63
- console.error('Failed to submit feedback:', error);
+ if (process.env.NODE_ENV === 'development') {
+ // eslint-disable-next-line no-console
64
+ console.error('Failed to submit feedback:', error);
65
+ }
66
+ Sentry.captureException(error);
67
}
68
};
69
0 commit comments