Skip to content

Commit

Permalink
Fix incorrect throttle function for error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrozenberg committed May 20, 2024
1 parent d15fbae commit 03d33c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/error-reporting.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,15 +526,15 @@ export function getErrorReportData(
) {
expected = true;

if (throttleBase > NON_ACTIONABLE_ERROR_THROTTLE_THRESHOLD) {
if (throttleBase < NON_ACTIONABLE_ERROR_THROTTLE_THRESHOLD) {
return;
}
}

const isUserError = isUserErrorMessage(message);

// Only report a subset of user errors.
if (isUserError && throttleBase > USER_ERROR_THROTTLE_THRESHOLD) {
if (isUserError && throttleBase < USER_ERROR_THROTTLE_THRESHOLD) {
return;
}

Expand Down

0 comments on commit 03d33c4

Please sign in to comment.