Skip to content

Commit

Permalink
Fix tx-list integration test to support metametrics provider.
Browse files Browse the repository at this point in the history
  • Loading branch information
danjm committed Feb 28, 2019
1 parent 65caafc commit ae58572
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion development/states/tx-list-items.json
Original file line number Diff line number Diff line change
Expand Up @@ -1403,5 +1403,6 @@
],
"priceAndTimeEstimatesLastRetrieved": 1541527901281,
"errors": {}
}
},
"confirmTransaction": {}
}
4 changes: 3 additions & 1 deletion ui/app/metametrics/metametrics.provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ae58572

Please sign in to comment.