diff --git a/react/src/components/dashboard/sendCoin.js b/react/src/components/dashboard/sendCoin.js index 17af181..ec0afa6 100644 --- a/react/src/components/dashboard/sendCoin.js +++ b/react/src/components/dashboard/sendCoin.js @@ -30,6 +30,8 @@ import { SocketProvider } from 'socket.io-react'; import io from 'socket.io-client'; const socket = io.connect('http://127.0.0.1:' + Config.agamaPort); +// TODO: prevent any cache updates rather than utxo while on send coin form + class SendCoin extends React.Component { constructor(props) { super(props); @@ -159,7 +161,9 @@ class SendCoin extends React.Component { this.props.ActiveCoin.addresses['public'].length) { for (let i = 0; i < this.props.ActiveCoin.addresses['public'].length; i++) { if (this.props.ActiveCoin.addresses['public'][i].address === address) { - return this.props.ActiveCoin.addresses['public'][i].amount; + if (this.props.ActiveCoin.addresses['public'][i].amount !== 'N/A') { + return this.props.ActiveCoin.addresses['public'][i].amount; + } } } } else { @@ -181,11 +185,24 @@ class SendCoin extends React.Component { ); } else { - return this.props.ActiveCoin.addresses[type].map((address) => -
{translate('INDEX.TYPE')} | diff --git a/react/src/translate/en.js b/react/src/translate/en.js index 1c61a26..e72b2ae 100644 --- a/react/src/translate/en.js +++ b/react/src/translate/en.js @@ -8,9 +8,12 @@ export const _lang = { 'SHOWING': 'Showing', 'OF': 'of', 'TO': 'to', + 'SEARCH': 'Search', 'PREVIOUS': 'Previous', 'NEXT': 'Next', 'ENTRIES_SM': 'entries', + 'SYNC_ERR_LONGESTCHAIN': 'Unable to get current sync progress. Err: no longestchain param in response', + 'SYNC_ERR_BLOCKS': 'Unable to get current sync progress. Err: no blocks param in response', 'COIN_IS_BUSY': 'Coin is busy processing', 'REFRESHING_BASILISK_NET': 'Refreshing Basilisk Network Connections', 'SELECT_A_COIN': 'Select Coin to add to EasyDEX',
---|