diff --git a/hooks/usePostSignupInit.ts b/hooks/usePostSignupInit.ts index 0e8bdde6..395120bd 100644 --- a/hooks/usePostSignupInit.ts +++ b/hooks/usePostSignupInit.ts @@ -1,14 +1,15 @@ -import * as Sentry from '@sentry/react-native'; import { useEffect, useRef } from 'react'; +import * as Sentry from '@sentry/react-native'; +import { isCancelledError, useQueryClient } from '@tanstack/react-query'; +import { useShallow } from 'zustand/react/shallow'; import { updateSafeAddress } from '@/lib/api'; import { User } from '@/lib/types'; import { withRefreshToken } from '@/lib/utils'; import { usePointsStore } from '@/store/usePointsStore'; import { useUserStore } from '@/store/useUserStore'; -import { useQueryClient } from '@tanstack/react-query'; + import { fetchIsDeposited } from './useAnalytics'; -import { useShallow } from 'zustand/react/shallow'; /** * Hook to handle post-signup/post-login initialization tasks that don't need to block @@ -77,6 +78,7 @@ export const usePostSignupInit = (user: User | undefined) => { }); } } catch (error) { + if (isCancelledError(error)) return; Sentry.captureException(error, { tags: { type: 'balance_check_error_lazy',