diff --git a/ui/app/pages/confirm-encryption-public-key/confirm-encryption-public-key.component.js b/ui/app/pages/confirm-encryption-public-key/confirm-encryption-public-key.component.js index 08a3cbf95..c3d1dfaa2 100644 --- a/ui/app/pages/confirm-encryption-public-key/confirm-encryption-public-key.component.js +++ b/ui/app/pages/confirm-encryption-public-key/confirm-encryption-public-key.component.js @@ -158,23 +158,24 @@ export default class ConfirmEncryptionPublicKey extends Component { const { domainMetadata, txData } = this.props const { t } = this.context - const origin = domainMetadata[txData.origin] - const notice = t('encryptionPublicKeyNotice', [origin.name]) + const originMetadata = domainMetadata[txData.origin] + const notice = t('encryptionPublicKeyNotice', [txData.origin]) + const name = originMetadata?.name || txData.origin return (