diff --git a/ui/components/app/signature-request-original/signature-request-original.component.js b/ui/components/app/signature-request-original/signature-request-original.component.js index b2f4813f8..14ec9f784 100644 --- a/ui/components/app/signature-request-original/signature-request-original.component.js +++ b/ui/components/app/signature-request-original/signature-request-original.component.js @@ -5,7 +5,6 @@ import { ObjectInspector } from 'react-inspector'; import LedgerInstructionField from '../ledger-instruction-field'; import { MESSAGE_TYPE } from '../../../../shared/constants/app'; -import { EVENT } from '../../../../shared/constants/metametrics'; import { getURLHostName } from '../../../helpers/utils/util'; import { conversionUtil } from '../../../../shared/modules/conversion.utils'; import { stripHexPrefix } from '../../../../shared/modules/hexstring-utils'; @@ -25,7 +24,6 @@ import SignatureRequestOriginalWarning from './signature-request-original-warnin export default class SignatureRequestOriginal extends Component { static contextTypes = { t: PropTypes.func.isRequired, - trackEvent: PropTypes.func.isRequired, }; static propTypes = { @@ -191,18 +189,8 @@ export default class SignatureRequestOriginal extends Component { onSubmit = async (event) => { const { clearConfirmTransaction, history, mostRecentOverviewPage, sign } = this.props; - const { trackEvent, type } = this.context; await sign(event); - trackEvent({ - category: EVENT.CATEGORIES.TRANSACTIONS, - event: 'Confirm', - properties: { - action: 'Sign Request', - legacy_event: true, - type, - }, - }); clearConfirmTransaction(); history.push(mostRecentOverviewPage); }; @@ -210,18 +198,8 @@ export default class SignatureRequestOriginal extends Component { onCancel = async (event) => { const { clearConfirmTransaction, history, mostRecentOverviewPage, cancel } = this.props; - const { trackEvent, type } = this.context; await cancel(event); - trackEvent({ - category: EVENT.CATEGORIES.TRANSACTIONS, - event: 'Cancel', - properties: { - action: 'Sign Request', - legacy_event: true, - type, - }, - }); clearConfirmTransaction(); history.push(mostRecentOverviewPage); }; @@ -236,7 +214,7 @@ export default class SignatureRequestOriginal extends Component { txData: { type }, hardwareWalletRequiresConnection, } = this.props; - const { trackEvent, t } = this.context; + const { t } = this.context; return (