diff --git a/ui/components/multichain/account-list-item-menu/account-list-item-menu.js b/ui/components/multichain/account-list-item-menu/account-list-item-menu.js index e3e2eeec4..90f070c45 100644 --- a/ui/components/multichain/account-list-item-menu/account-list-item-menu.js +++ b/ui/components/multichain/account-list-item-menu/account-list-item-menu.js @@ -138,6 +138,7 @@ export const AccountListItemMenu = ({ metricsLocation={METRICS_LOCATION} closeMenu={closeMenu} textProps={{ variant: TextVariant.bodySm }} + address={identity.address} /> {isRemovable ? ( { { const t = useI18nContext(); const trackEvent = useContext(MetaMetricsContext); const history = useHistory(); - const currentAddress = useSelector(getSelectedAddress); const chainId = useSelector(getCurrentChainId); const rpcPrefs = useSelector(getRpcPrefsForCurrentProvider); - const addressLink = getAccountLink(currentAddress, chainId, rpcPrefs); + const addressLink = getAccountLink(address, chainId, rpcPrefs); const { blockExplorerUrl } = rpcPrefs; const blockExplorerUrlSubTitle = getURLHostName(blockExplorerUrl); @@ -94,4 +93,5 @@ ViewExplorerMenuItem.propTypes = { metricsLocation: PropTypes.string.isRequired, closeMenu: PropTypes.func, textProps: PropTypes.object, + address: PropTypes.string.isRequired, }; diff --git a/ui/components/multichain/menu-items/view-explorer-menu-item.test.js b/ui/components/multichain/menu-items/view-explorer-menu-item.test.js index 58fd8b115..447635fd9 100644 --- a/ui/components/multichain/menu-items/view-explorer-menu-item.test.js +++ b/ui/components/multichain/menu-items/view-explorer-menu-item.test.js @@ -10,6 +10,7 @@ const render = () => { , store, );