From 65e1dd3ec53deb552f26f94b3131612f866bcc7a Mon Sep 17 00:00:00 2001 From: pbca26 Date: Sat, 2 Dec 2017 20:06:35 +0300 Subject: [PATCH] send native hide ismine:false addresses --- .../components/dashboard/receiveCoin/receiveCoin.render.js | 6 ++---- react/src/components/dashboard/sendCoin/sendCoin.js | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/react/src/components/dashboard/receiveCoin/receiveCoin.render.js b/react/src/components/dashboard/receiveCoin/receiveCoin.render.js index 52b45a2..5f19409 100644 --- a/react/src/components/dashboard/receiveCoin/receiveCoin.render.js +++ b/react/src/components/dashboard/receiveCoin/receiveCoin.render.js @@ -3,8 +3,6 @@ import { translate } from '../../../translate/translate'; import QRModal from '../qrModal/qrModal'; import InvoiceModal from '../invoiceModal/invoiceModal'; -// TODO: zaddr match length > 64 chars - export const AddressActionsNonBasiliskModeRender = function(address, type) { return ( @@ -48,7 +46,7 @@ export const AddressItemRender = function(address, type) { { type === 'public' ? address.address : `${address.address.substring(0, 34)}...` } { !address.canspend && - address.address.substring(0, 2) !== 'zc' && + type === 'public' && @@ -57,7 +55,7 @@ export const AddressItemRender = function(address, type) { { address.amount } { !address.canspend && - address.address.substring(0, 2) !== 'zc' && + type === 'public' && (0) } diff --git a/react/src/components/dashboard/sendCoin/sendCoin.js b/react/src/components/dashboard/sendCoin/sendCoin.js index 0a85b23..8dc8db2 100644 --- a/react/src/components/dashboard/sendCoin/sendCoin.js +++ b/react/src/components/dashboard/sendCoin/sendCoin.js @@ -210,8 +210,8 @@ class SendCoin extends React.Component { if (this.props.ActiveCoin.addresses && this.props.ActiveCoin.addresses[type] && this.props.ActiveCoin.addresses[type].length) { - this.props.ActiveCoin.addresses[type].map((address) => { - if (address.amount > 0) { + this.props.ActiveCoin.addresses[type].map((address) => { + if (address.amount > 0 && (type !== 'public' || (address.canspend && type === 'public'))) { _items.push(