Skip to content

Commit cf658c0

Browse files
fix: handle null or undefined account value
Co-authored-by: abbesBenayache <[email protected]>
1 parent 9672ef9 commit cf658c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/$chainSlug/_layout/address/$addressAddress.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function AddressRoute() {
119119
}
120120
}, [userAddress, addressAddress, fromMyActivity, navigate, chainSlug]);
121121

122-
const addressDetails = buildAddressDetails({ address: account });
122+
const addressDetails = account ? buildAddressDetails({ address: account }) : undefined;
123123
const addressOverview = account
124124
? buildAddressOverview({ address: account })
125125
: undefined;

0 commit comments

Comments
 (0)