Skip to content

Conversation

papadritta
Copy link

This PR resolves TypeScript and ESLint build issues in useTransactionWatcher.tsx.

Fixes:

  • Wrapped handleStandardTransfer inside try-catch block
  • Replaced any with unknown to pass lint checks
  • Replaced invalid status: "not_found" with valid enum value status: "error"
  • Errors resolved:
    • TS1005 Unexpected catch
    • TS2322 Type '"not_found"' is not assignable to type 'MutationStatus'
    • ESLint: Unexpected any. Specify a different type

yarn build passed successfully

No logic changes — strictly fixes for build compliance and safety.

…SLint errors

- Wrapped handleStandardTransfer call in a try-catch block inside useTransactionWatcher.tsx
- Fixed TypeScript error: Unexpected "catch" (TS1005)
- Replaced invalid 'not_found' with valid MutationStatus value 'error' (TS2322)
- Removed usage of `any`, replaced with `unknown` to satisfy ESLint rule `@typescript-eslint/no-explicit-any`
- Verified successful build using `yarn build`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant