Clean up and Package

The first case is covered by the condition for enabling the send button
This commit is contained in:
Jonas Whidden 2016-08-02 08:35:18 -05:00
parent 09cad7196b
commit 629ba32d3a
2 changed files with 1 additions and 6 deletions

BIN
dist.zip

Binary file not shown.

View file

@ -24,12 +24,7 @@ var NewAddressSection = React.createClass({
var SendToAddressSection = React.createClass({ var SendToAddressSection = React.createClass({
sendToAddress: function() { sendToAddress: function() {
if (this.state.amount > this.state.balance) if ((this.state.balance - this.state.amount) < 1)
{
alert("The amount you're trying to send is greater than the number of credits in your wallet.");
return;
}
else if ((this.state.balance - this.state.amount) < 1)
{ {
alert("Insufficient balance: after this transaction you would have less than 1 LBC in your wallet.") alert("Insufficient balance: after this transaction you would have less than 1 LBC in your wallet.")
return; return;