Uniswap / Uniswap/interface

Crash report: `TypeError: Cannot read properties of undefined (reading 'infoLink')`

Open
#2,782 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
5.5k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

URL

https://app.uniswap.org/#/swap

swap state

{
  "INPUT": {
    "currencyId": "ETH"
  },
  "OUTPUT": {
    "currencyId": null
  },
  "independentField": "INPUT",
  "typedValue": "",
  "recipient": null
}

Error

TypeError: Cannot read properties of undefined (reading 'infoLink')

Stacktrace

TypeError: Cannot read properties of undefined (reading 'infoLink')
    at kf (https://app.uniswap.org/static/js/main.76ce51ac.chunk.js:1:338032)
    at ua (https://app.uniswap.org/static/js/35.fc333caa.chunk.js:2:1361099)
    at Va (https://app.uniswap.org/static/js/35.fc333caa.chunk.js:2:1370666)
    at $u (https://app.uniswap.org/static/js/35.fc333caa.chunk.js:2:1414390)
    at Cs (https://app.uniswap.org/static/js/35.fc333caa.chunk.js:2:1400640)
    at js (https://app.uniswap.org/static/js/35.fc333caa.chunk.js:2:1400568)
    at Ss (https://app.uniswap.org/static/js/35.fc333caa.chunk.js:2:1400431)
    at bs (https://app.uniswap.org/static/js/35.fc333caa.chunk.js:2:1397397)
    at https://app.uniswap.org/static/js/35.fc333caa.chunk.js:2:1346891
    at https://app.uniswap.org/static/js/35.fc333caa.chunk.js:2:1424128

Device data

{
  "ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36",
  "browser": {
    "name": "Chrome",
    "version": "95.0.4638.69",
    "major": "95"
  },
  "engine": {
    "name": "Blink",
    "version": "95.0.4638.69"
  },
  "os": {
    "name": "Windows",
    "version": "10"
  },
  "device": {},
  "cpu": {
    "architecture": "amd64"
  }
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the crash at https://app.uniswap.org/#/swap using the reported swap state, then trace the error from the listed main.76ce51ac and 35.fc333caa chunks. Done means the swap page no longer crashes when OUTPUT.currencyId is null and the reported state can be loaded safely.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.