Skip to content

kyc.screen Sumsub onMessage callback still uses any #1396

Description

@marassteiner

Context

Follow-up from #1271

PR #1271 touches src/screens/kyc.screen.tsx. The Sumsub onMessage callback still takes payload: any. The type was already there; this PR did not introduce it. CONTRIBUTING.md still wants touched files reported, so this is tracked separately rather than blocking the pending-recommendation hint.

Evidence

  • src/screens/kyc.screen.tsx:1843onMessage={(type: string, payload: any) => {

Suggested direction

Replace any with a narrow Sumsub payload type (or unknown plus a type guard) before reading payload.reviewResult.

Acceptance

  • No any on the Sumsub onMessage callback
  • The RED/FINAL and GREEN branches still type-check

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions