Fix: check if available to spend is enought to send money
This commit is contained in:
parent
9d1f0082ea
commit
294c086913
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ angular.module('copay.send').controller('SendController',
|
||||||
return;
|
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'};
|
$rootScope.flashMessage = { message: 'You have not enough amount to send', type: 'error'};
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue