Fix: check if available to spend is enought to send money

This commit is contained in:
Gustavo Cortez 2014-04-22 16:21:14 -03:00
commit 294c086913

View file

@ -13,7 +13,7 @@ angular.module('copay.send').controller('SendController',
return;
}
if ($rootScope.totalBalance <= form.amount.$modelValue) {
if ($rootScope.availableBalance <= form.amount.$modelValue) {
$rootScope.flashMessage = { message: 'You have not enough amount to send', type: 'error'};
return;
}