Filter errors that get sent to Sentry (#5247)

This commit is contained in:
Hailey
2024-09-25 15:05:33 -07:00
committed by GitHub
parent b1ca2503de
commit 58036ffb52
4 changed files with 30 additions and 15 deletions
+2 -1
View File
@@ -327,7 +327,8 @@ let EditableUserAvatar = ({
onSelectNewAvatar(croppedImage)
} catch (e: any) {
if (!String(e).includes('Canceled')) {
// Don't log errors for cancelling selection to sentry on ios or android
if (!String(e).toLowerCase().includes('cancel')) {
logger.error('Failed to crop banner', {error: e})
}
}