diff --git a/react/src/actions/actionCreators.js b/react/src/actions/actionCreators.js index f070101..f785cd6 100644 --- a/react/src/actions/actionCreators.js +++ b/react/src/actions/actionCreators.js @@ -322,15 +322,18 @@ export function setBasiliskMainAddress(json, coin, mode) { } export function getNativeTxHistoryState(json) { + console.log('getNativeTxHistoryState', json.result.length); if (json && json.error) { json = null; - } else if (json && json.result) { + } else if (json && json.result && json.result.length) { json = json.result; - } else if (!json.length) { + } else if (!json || !json.result.length) { json = 'no data'; } + console.log('getNativeTxHistoryState', json); + return { type: DASHBOARD_ACTIVE_COIN_NATIVE_TXHISTORY, txhistory: json, diff --git a/react/src/components/dashboard/walletsNativeSend/walletsNativeSend.js b/react/src/components/dashboard/walletsNativeSend/walletsNativeSend.js index 3bc67df..7cdb342 100644 --- a/react/src/components/dashboard/walletsNativeSend/walletsNativeSend.js +++ b/react/src/components/dashboard/walletsNativeSend/walletsNativeSend.js @@ -61,6 +61,15 @@ class WalletsNativeSend extends React.Component { } } + zAddressCount() { + return this.props.ActiveCoin.addresses && + this.props.ActiveCoin.addresses.private && + this.props.ActiveCoin.addresses.private.length; + console.log(this.props.ActiveCoin.addresses && + this.props.ActiveCoin.addresses.private && + this.props.ActiveCoin.addresses.private.length); + } + renderAddressByType(type) { if (this.props.ActiveCoin.addresses && this.props.ActiveCoin.addresses[type] && diff --git a/react/src/components/dashboard/walletsNativeSend/walletsNativeSend.render.js b/react/src/components/dashboard/walletsNativeSend/walletsNativeSend.render.js index de006e7..aa70e69 100644 --- a/react/src/components/dashboard/walletsNativeSend/walletsNativeSend.render.js +++ b/react/src/components/dashboard/walletsNativeSend/walletsNativeSend.render.js @@ -20,7 +20,6 @@ export const AddressListRender = function() { - { translate('SEND.SELECT_T_OR_Z_ADDR') } - - { this.renderAddressByType('public') } { this.renderAddressByType('private') } @@ -28,6 +27,8 @@ export const AddressListRender = function() { ); }; +// { this.renderAddressByType('public') } + export const OASendUIRender = function() { return (