diff options
author | Chenyu Huang <itschenyu@gmail.com> | 2025-08-22 13:28:32 -0700 |
---|---|---|
committer | Chenyu Huang <itschenyu@gmail.com> | 2025-08-22 13:28:32 -0700 |
commit | 184df9cbfef582180c5765d8158bbbb249558f8a (patch) | |
tree | 6a371f4caf51c19c96399ad78f041ce510048531 /src/state | |
parent | 912ab1bd9b771cf14c830203332f3620e661a752 (diff) | |
download | voidsky-184df9cbfef582180c5765d8158bbbb249558f8a.tar.zst |
wrapp failed to send feed interactions inside isNetworkError
Diffstat (limited to 'src/state')
-rw-r--r-- | src/state/feed-feedback.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/state/feed-feedback.tsx b/src/state/feed-feedback.tsx index ee381259d..8b235f492 100644 --- a/src/state/feed-feedback.tsx +++ b/src/state/feed-feedback.tsx @@ -11,6 +11,7 @@ import {type AppBskyFeedDefs} from '@atproto/api' import throttle from 'lodash.throttle' import {FEEDBACK_FEEDS, STAGING_FEEDS} from '#/lib/constants' +import {isNetworkError} from '#/lib/hooks/useCleanError' import {logEvent} from '#/lib/statsig/statsig' import {Logger} from '#/logger' import { @@ -83,7 +84,9 @@ export function useFeedFeedback( }, ) .catch((e: any) => { - logger.warn('Failed to send feed interactions', {error: e}) + if (!isNetworkError(e)) { + logger.warn('Failed to send feed interactions', {error: e}) + } }) // Send to Statsig |