diff --git a/ui/components/app/modals/account-details-modal/account-details-modal.component.js b/ui/components/app/modals/account-details-modal/account-details-modal.component.js index 5943cdca5..72767f310 100644 --- a/ui/components/app/modals/account-details-modal/account-details-modal.component.js +++ b/ui/components/app/modals/account-details-modal/account-details-modal.component.js @@ -81,7 +81,7 @@ export default class AccountDetailsModal extends Component { > {rpcPrefs.blockExplorerUrl ? this.context.t('blockExplorerView', [ - rpcPrefs.blockExplorerUrl.match(/^https?:\/\/(.+)/u)[1], + getURLHostName(rpcPrefs.blockExplorerUrl), ]) : this.context.t('viewOnEtherscan', [ this.context.t('blockExplorerAccountAction'),