Commit 76c9bf84 authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

fix: use optional operator for chainId (#2666)

parent f26a3306
......@@ -17,7 +17,7 @@ export default function Identicon() {
// restrict usage of Davatar until it stops sending 3p requests
// see https://github.com/metaphor-xyz/davatar-helpers/issues/18
const supportsENS = useMemo(() => {
return ([1, 3, 4, 5] as Array<number | undefined>).includes(library?.network.chainId)
return ([1, 3, 4, 5] as Array<number | undefined>).includes(library?.network?.chainId)
}, [library])
return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment