Clean up and Package
The first case is covered by the condition for enabling the send button
This commit is contained in:
parent
09cad7196b
commit
629ba32d3a
2 changed files with 1 additions and 6 deletions
BIN
dist.zip
BIN
dist.zip
Binary file not shown.
|
@ -24,12 +24,7 @@ var NewAddressSection = React.createClass({
|
|||
|
||||
var SendToAddressSection = React.createClass({
|
||||
sendToAddress: function() {
|
||||
if (this.state.amount > this.state.balance)
|
||||
{
|
||||
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)
|
||||
if ((this.state.balance - this.state.amount) < 1)
|
||||
{
|
||||
alert("Insufficient balance: after this transaction you would have less than 1 LBC in your wallet.")
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue