mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Do not attempt to track tx metrics events if txMeta is not available (#11823)
This commit is contained in:
parent
ae247ea14a
commit
e7dc42be0b
@ -1383,6 +1383,10 @@ export default class TransactionController extends EventEmitter {
|
|||||||
* @param {Object} extraParams - optional props and values to include in sensitiveProperties
|
* @param {Object} extraParams - optional props and values to include in sensitiveProperties
|
||||||
*/
|
*/
|
||||||
_trackTransactionMetricsEvent(txMeta, event, extraParams = {}) {
|
_trackTransactionMetricsEvent(txMeta, event, extraParams = {}) {
|
||||||
|
if (!txMeta) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const {
|
const {
|
||||||
type,
|
type,
|
||||||
time,
|
time,
|
||||||
|
Loading…
Reference in New Issue
Block a user