diff --git a/client/src/components/vbox.component.jsx b/client/src/components/vbox.component.jsx index 3f8b9fa4..2633d593 100644 --- a/client/src/components/vbox.component.jsx +++ b/client/src/components/vbox.component.jsx @@ -240,7 +240,7 @@ function Vbox(args) { const reclaimClass = `vbox-btn reclaim ${reclaiming ? 'reclaiming' : ''}`; function inventoryBtn(v, i) { - if (!v) return ; + if (!v && v !== 0) return ; function onClick(e) { if (reclaiming) return sendVboxReclaim(i); @@ -279,25 +279,24 @@ function Vbox(args) { } function combinerBtn() { - const dots = combiner.filter(v => v).length; let text = ''; - if (dots < 3) { + if (combiner.length < 3) { for (let i = 0; i < 3; i++) { - if (dots > i) { + if (combiner.length > i) { text += '■ '; } else { text += '▫ '; } } } else { - text = 'combine' + text = 'combine'; } return (