From 35c74ee3257666e928e70e089dea94ff4715408c Mon Sep 17 00:00:00 2001 From: Mashy Date: Thu, 21 Nov 2019 11:41:08 +1000 Subject: [PATCH] buycount bugfix --- client/src/components/vbox.component.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/vbox.component.jsx b/client/src/components/vbox.component.jsx index 9263662d..a0329268 100644 --- a/client/src/components/vbox.component.jsx +++ b/client/src/components/vbox.component.jsx @@ -102,7 +102,7 @@ function validVboxSelect(vbox, itemInfo, shopSelect, stashSelect) { const valid = selectedItems.every(c => { if (!combo.components.includes(c)) return false; if (itemCount[c] > comboCount[c]) return false; - buyCount[c] -= itemCount[c]; + buyCount[c] -= 1; return true; }); if (valid) {