Crash report: `TypeError: Cannot read properties of undefined (reading 'infoLink')`
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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