diff --git a/src/html/js/entries.js b/src/html/js/entries.js
index 4dac309..9d4386b 100644
--- a/src/html/js/entries.js
+++ b/src/html/js/entries.js
@@ -128,7 +128,7 @@ var EntryController = function($scope, $http, $rootScope, $filter) {
$scope.entryRowClass = function(sold) {
if(sold < $scope.account.authorized_overdraft) {
return 'error';
- } else if (entry.sold < 0) {
+ } else if (esold < 0) {
return 'warning';
}
};