From bf7bbdb8c27757a36359865aa37f7b3a40ebaf19 Mon Sep 17 00:00:00 2001 From: pbca26 Date: Mon, 17 Apr 2017 11:33:05 +0300 Subject: [PATCH] native missing send/receive props check --- react/src/components/dashboard/walletsNativeReceive.js | 3 +-- react/src/components/dashboard/walletsNativeSend.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/react/src/components/dashboard/walletsNativeReceive.js b/react/src/components/dashboard/walletsNativeReceive.js index d23308c..dea9b93 100644 --- a/react/src/components/dashboard/walletsNativeReceive.js +++ b/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) => diff --git a/react/src/components/dashboard/walletsNativeSend.js b/react/src/components/dashboard/walletsNativeSend.js index 35eaf53..42b522a 100644 --- a/react/src/components/dashboard/walletsNativeSend.js +++ b/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) =>
  • this.updateAddressSelection(address.address, type, address.amount)}> [ {address.amount} {this.props.ActiveCoin.coin} ]  {address.address}