From 845149deeeee9bb1f0fc417cc7a37cbf9726d16a Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 3 May 2015 08:56:44 +0200 Subject: [PATCH] Boxes are empty, so even when it's zero, place the amount. --- public/js/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/public/js/index.js b/public/js/index.js index 22a9081f06..6663b8a7d3 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -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!') });