diff --git a/js/main.js b/js/main.js index 8346207..2a811ff 100644 --- a/js/main.js +++ b/js/main.js @@ -310,13 +310,15 @@ var mapView = { out = '
'; for (var i = 0; i < current_user_bag_items.length; i++) { - out += '

' + - self.itemsArray[current_user_bag_items[i].inventory_item_data.item.item_id] + - '
Count: ' + - (current_user_bag_items[i].inventory_item_data.item.count || 0) + - '
'; + if(current_user_bag_items[i].inventory_item_data.item.count > 0) { + out += '

' + + self.itemsArray[current_user_bag_items[i].inventory_item_data.item.item_id] + + '
Count: ' + + (current_user_bag_items[i].inventory_item_data.item.count || 0) + + '
'; + } } out += '
'; var nth = 0;