Browse Source

native missing send/receive props check

all-modes
pbca26 8 years ago
parent
commit
bf7bbdb8c2
  1. 3
      react/src/components/dashboard/walletsNativeReceive.js
  2. 2
      react/src/components/dashboard/walletsNativeSend.js

3
react/src/components/dashboard/walletsNativeReceive.js

@ -25,8 +25,7 @@ class WalletsNativeReceive extends React.Component {
}
renderAddressList(type) {
console.log(this.props.ActiveCoin.addresses[type]);
if (this.props.ActiveCoin.addresses[type] && this.props.ActiveCoin.addresses[type].length) {
if (this.props.ActiveCoin.addresses && this.props.ActiveCoin.addresses[type] && this.props.ActiveCoin.addresses[type].length) {
return this.props.ActiveCoin.addresses[type].map((address) =>
<tr key={address.address}>
<td>

2
react/src/components/dashboard/walletsNativeSend.js

@ -22,7 +22,7 @@ class WalletsNativeSend extends React.Component {
}
renderAddressByType(type) {
if (this.props.ActiveCoin.addresses[type] && this.props.ActiveCoin.addresses[type].length) {
if (this.props.ActiveCoin.addresses && this.props.ActiveCoin.addresses[type] && this.props.ActiveCoin.addresses[type].length) {
return this.props.ActiveCoin.addresses[type].map((address) =>
<li data-original-index="2" key={address.address} className={address.amount <= 0 ? 'hide' : ''}>
<a tabIndex="0" data-tokens="null" onClick={() => this.updateAddressSelection(address.address, type, address.amount)}><i className={type === 'public' ? 'icon fa-eye' : 'icon fa-eye-slash'}></i> <span className="text">[ {address.amount} {this.props.ActiveCoin.coin} ] {address.address}</span><span className="glyphicon glyphicon-ok check-mark"></span></a>

Loading…
Cancel
Save