mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #115 from cmgustavo/bug/01-send-form
check if your balance is enough to send money
This commit is contained in:
commit
8df747001c
|
@ -13,6 +13,11 @@ angular.module('copay.send').controller('SendController',
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($rootScope.totalBalance <= form.amount.$modelValue) {
|
||||||
|
$rootScope.flashMessage = { message: 'You have not enough amount to send', type: 'error'};
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var address = form.address.$modelValue;
|
var address = form.address.$modelValue;
|
||||||
var amount = (form.amount.$modelValue * 100000000).toString(); // satoshi to string
|
var amount = (form.amount.$modelValue * 100000000).toString(); // satoshi to string
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue