Merge pull request #8882 from internet-development/binaryfiddler/isnetwork
wrapp failed to send feed interactions inside isNetworkError
This commit is contained in:
@@ -11,6 +11,7 @@ import {type AppBskyFeedDefs} from '@atproto/api'
|
|||||||
import throttle from 'lodash.throttle'
|
import throttle from 'lodash.throttle'
|
||||||
|
|
||||||
import {FEEDBACK_FEEDS, STAGING_FEEDS} from '#/lib/constants'
|
import {FEEDBACK_FEEDS, STAGING_FEEDS} from '#/lib/constants'
|
||||||
|
import {isNetworkError} from '#/lib/hooks/useCleanError'
|
||||||
import {logEvent} from '#/lib/statsig/statsig'
|
import {logEvent} from '#/lib/statsig/statsig'
|
||||||
import {Logger} from '#/logger'
|
import {Logger} from '#/logger'
|
||||||
import {
|
import {
|
||||||
@@ -83,7 +84,9 @@ export function useFeedFeedback(
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
.catch((e: any) => {
|
.catch((e: any) => {
|
||||||
|
if (!isNetworkError(e)) {
|
||||||
logger.warn('Failed to send feed interactions', {error: e})
|
logger.warn('Failed to send feed interactions', {error: e})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// Send to Statsig
|
// Send to Statsig
|
||||||
|
|||||||
Reference in New Issue
Block a user