Bluesky app fork with some witchin' additions 💫 witchsky.app
bluesky fork client

Log onboarding errors for suggested accounts (#9892)

authored by

DS Boyce and committed by
GitHub
c188fd4f a1cda126

+16 -1
+16 -1
src/screens/Onboarding/StepSuggestedAccounts/index.tsx
··· 9 9 import {wait} from '#/lib/async/wait' 10 10 import {popularInterests, useInterestsDisplayNames} from '#/lib/interests' 11 11 import {isBlockedOrBlocking, isMuted} from '#/lib/moderation/blocked-and-muted' 12 + import {logger} from '#/logger' 12 13 import {updateProfileShadow} from '#/state/cache/profile-shadow' 13 14 import {useLanguagePrefs} from '#/state/preferences' 14 15 import {useModerationOpts} from '#/state/preferences/moderation-opts' ··· 128 129 toast.show(_(msg`Followed all accounts!`), {type: 'success'}) 129 130 setFollowedUsers(followed => [...followed, ...newlyFollowed]) 130 131 }, 131 - onError: () => { 132 + onError: e => { 133 + logger.error( 134 + 'Failed to follow all suggested accounts during onboarding', 135 + { 136 + safeMessage: e, 137 + }, 138 + ) 132 139 toast.show( 133 140 _(msg`Failed to follow all suggested accounts, please try again`), 134 141 {type: 'error'}, ··· 155 162 }, 156 163 [ax, selectedInterest, suggestedUsers?.recId], 157 164 ) 165 + 166 + useEffect(() => { 167 + if (error) { 168 + logger.error('Failed to fetch suggested accounts during onboarding', { 169 + safeMessage: error, 170 + }) 171 + } 172 + }, [error]) 158 173 159 174 return ( 160 175 <View style={[a.align_start, a.gap_sm]} testID="onboardingInterests">