Skip to content

Commit

Permalink
Fixed net being undefined sometimes when fetching transaction history (
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuggins authored and dvdschwrtz committed Jan 4, 2018
1 parent e1a1f89 commit 846ef13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ exports[`TransactionHistory renders without crashing 1`] = `
<TransactionHistory
address="AWy7RNBVr9vDadRMK9p7i7Z1tL7GrLAxoh"
isLoadingTransactions={false}
net="TestNet"
store={
Object {
"clearActions": [Function],
Expand Down
2 changes: 2 additions & 0 deletions app/containers/TransactionHistory/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'

import { syncTransactionHistory, getIsLoadingTransactions } from '../../modules/transactions'
import { getNetwork } from '../../modules/metadata'
import { getAddress } from '../../modules/account'
import { getTransactions } from '../../modules/wallet'
import TransactionHistory from './TransactionHistory'

const mapStateToProps = (state: Object) => ({
net: getNetwork(state),
address: getAddress(state),
transactions: getTransactions(state),
isLoadingTransactions: getIsLoadingTransactions(state)
Expand Down

0 comments on commit 846ef13

Please sign in to comment.