From 294c08691373a4f6784bdb78c1a5fc7d1786c079 Mon Sep 17 00:00:00 2001 From: Gustavo Cortez Date: Tue, 22 Apr 2014 16:21:14 -0300 Subject: [PATCH] Fix: check if available to spend is enought to send money --- js/controllers/send.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/controllers/send.js b/js/controllers/send.js index cc9c4f673..276468464 100644 --- a/js/controllers/send.js +++ b/js/controllers/send.js @@ -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; }