We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4489fe commit 447374cCopy full SHA for 447374c
src/components/Header/GasPriceViewer.tsx
@@ -43,8 +43,10 @@ const GasPriceViewer = () => {
43
44
const handleClosePopover = e => {
45
// allow user to add network immediately after connecting wallet
46
- if (e.relatedTarget && e.relatedTarget.getAttribute("aria-labelledby") === "rk_connect_title") {
47
- return
+ if (e.relatedTarget && e.relatedTarget instanceof Element) {
+ if (e.relatedTarget.getAttribute("aria-labelledby") === "rk_connect_title") {
48
+ return
49
+ }
50
}
51
setAnchorEl(null)
52
0 commit comments