Do not attempt to track tx metrics events if txMeta is not available (#11823)

feature/default_network_editable
ryanml 3 years ago committed by GitHub
parent ae247ea14a
commit e7dc42be0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/scripts/controllers/transactions/index.js

@ -1383,6 +1383,10 @@ export default class TransactionController extends EventEmitter {
* @param {Object} extraParams - optional props and values to include in sensitiveProperties
*/
_trackTransactionMetricsEvent(txMeta, event, extraParams = {}) {
if (!txMeta) {
return;
}
const {
type,
time,

Loading…
Cancel
Save