diff --git a/development/states/tx-list-items.json b/development/states/tx-list-items.json index 7939e3d94a4b..d4e3f3860672 100644 --- a/development/states/tx-list-items.json +++ b/development/states/tx-list-items.json @@ -1403,5 +1403,6 @@ ], "priceAndTimeEstimatesLastRetrieved": 1541527901281, "errors": {} - } + }, + "confirmTransaction": {} } diff --git a/ui/app/metametrics/metametrics.provider.js b/ui/app/metametrics/metametrics.provider.js index 9f7b1cfe08e7..7fb5b9ee7182 100644 --- a/ui/app/metametrics/metametrics.provider.js +++ b/ui/app/metametrics/metametrics.provider.js @@ -79,12 +79,14 @@ MetaMetricsProvider.childContextTypes = { } const mapStateToProps = state => { + const txData = txDataSelector(state) || {} + return { network: getCurrentNetworkId(state), environmentType: getEnvironmentType(), activeCurrency: getSelectedAsset(state), accountType: getAccountType(state), - confirmTransactionOrigin: txDataSelector(state).origin, + confirmTransactionOrigin: txData.origin, metaMetricsId: state.metamask.metaMetricsId, participateInMetaMetrics: state.metamask.participateInMetaMetrics, metaMetricsSendCount: state.metamask.metaMetricsSendCount,