Style, comment.

This commit is contained in:
Alexis Lahouze 2016-03-27 23:07:22 +02:00
parent 0d65f5318a
commit 8f28d14201
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,7 @@ angular.module('accountant.accounts', [
return;
}
if(account.current <account.authorized_overdraft) {
if(account.current < account.authorized_overdraft) {
return 'danger';
} else if(account.current < 0) {
return 'warning';
@ -100,6 +100,7 @@ angular.module('accountant.accounts', [
authorized_overdraft: 0
});
// Insert account at the begining of the array.
$scope.accounts.splice(0, 0, account);
};