Skip to content

Commit

Permalink
wc: fix null deconstruction (#5493)
Browse files Browse the repository at this point in the history
  • Loading branch information
skylarbarrera committed Mar 13, 2024
1 parent ad0c7dd commit 5c8edce
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ export function WalletConnectV2ListItem({ session, reload }: { session: SessionT
const { dappName, dappUrl, dappLogo, address, chainIds } = React.useMemo(() => {
const { namespaces, requiredNamespaces, peer } = session;
const { metadata } = peer;
const { chains } = requiredNamespaces.eip155;
const chains = requiredNamespaces?.eip155?.chains || [];

const eip155Account = namespaces.eip155?.accounts?.[0] || undefined;

if (!eip155Account) {
Expand Down

0 comments on commit 5c8edce

Please sign in to comment.