Clean up some sentry logs (#2630)
* Change prop name for sentry ingestion * Fix test * Add default object
This commit is contained in:
parent
3371038f7d
commit
bc502edae1
39 changed files with 84 additions and 147 deletions
|
@ -66,7 +66,7 @@ export function ModerationMutedAccounts({}: Props) {
|
|||
try {
|
||||
await refetch()
|
||||
} catch (err) {
|
||||
logger.error('Failed to refresh my muted accounts', {error: err})
|
||||
logger.error('Failed to refresh my muted accounts', {message: err})
|
||||
}
|
||||
setIsPTRing(false)
|
||||
}, [refetch, setIsPTRing])
|
||||
|
@ -77,7 +77,7 @@ export function ModerationMutedAccounts({}: Props) {
|
|||
try {
|
||||
await fetchNextPage()
|
||||
} catch (err) {
|
||||
logger.error('Failed to load more of my muted accounts', {error: err})
|
||||
logger.error('Failed to load more of my muted accounts', {message: err})
|
||||
}
|
||||
}, [isFetching, hasNextPage, isError, fetchNextPage])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue