diff --git a/src/static/js/accounts.js b/src/static/js/accounts.js index 46a0ffb..f70601a 100644 --- a/src/static/js/accounts.js +++ b/src/static/js/accounts.js @@ -41,6 +41,10 @@ var AccountController = function($scope, $http, $rootScope, $window) { }; $scope.valueClass = function(account, value) { + if(!account) { + return + } + if(value < account.authorized_overdraft) { return "text-error"; } else if(value < 0) { diff --git a/src/templates/layout.html b/src/templates/layout.html index 12dfc37..2d10b6e 100644 --- a/src/templates/layout.html +++ b/src/templates/layout.html @@ -33,54 +33,54 @@ -
- -