Boxes are empty, so even when it's zero, place the amount.

This commit is contained in:
James Cole 2015-05-03 08:56:44 +02:00
parent 1a9e009327
commit 845149deee

View File

@ -14,9 +14,7 @@ function getBoxAmounts() {
for (x in boxes) {
var box = boxes[x];
$.getJSON('/json/box/' + box).success(function (data) {
if (data.amount_raw != 0) {
$('#box-' + data.box).html(data.amount);
}
$('#box-' + data.box).html(data.amount);
}).fail(function () {
console.log('Failed to get box!')
});