Skip to content

Commit 447374c

Browse files
authored
Merge pull request #1481 from scroll-tech/fix-sentry-error
Fix sentry error
1 parent f4489fe commit 447374c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/Header/GasPriceViewer.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ const GasPriceViewer = () => {
4343

4444
const handleClosePopover = e => {
4545
// allow user to add network immediately after connecting wallet
46-
if (e.relatedTarget && e.relatedTarget.getAttribute("aria-labelledby") === "rk_connect_title") {
47-
return
46+
if (e.relatedTarget && e.relatedTarget instanceof Element) {
47+
if (e.relatedTarget.getAttribute("aria-labelledby") === "rk_connect_title") {
48+
return
49+
}
4850
}
4951
setAnchorEl(null)
5052
}

0 commit comments

Comments
 (0)