Thanks to visit codestin.com
Credit goes to github.com

Skip to content

calling useOneInchSwap hook results to TypeError: Cannot read properties of undefined (reading 'chain') #244

@mafking

Description

@mafking

New Bug Report

Checklist

Issue Description

Uncaught TypeError: Cannot read properties of undefined (reading 'chain')
at useOneInchSwap (useOneInchSwap.ts:57:1)
at App (App.js:40:1)
at renderWithHooks (react-dom.development.js:16175:1)
at mountIndeterminateComponent (react-dom.development.js:20913:1)
at beginWork (react-dom.development.js:22416:1)
at beginWork$1 (react-dom.development.js:27381:1)
at performUnitOfWork (react-dom.development.js:26513:1)
at workLoopSync (react-dom.development.js:26422:1)
at renderRootSync (react-dom.development.js:26390:1)
at recoverFromConcurrentError (react-dom.development.js:25806:1)

Steps + code to reproduce

Actual Outcome

Expected Outcome

Environment

Server

  • Moralis server version: FILL_THIS_OUT

Client

  • react-moralis version: FILL_THIS_OUT
  • Moralis SDK version: FILL_THIS_OUT
  • Operating system: FILL_THIS_OUT
  • Browser: FILL_THIS_OUT

Logs

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