From a5d778475ee712e687a8c1c18b95cfcfc3bf2244 Mon Sep 17 00:00:00 2001 From: Mashy Date: Thu, 21 Nov 2019 11:36:06 +1000 Subject: [PATCH] fix buycount combo bug --- 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 3433febf..6a8a13fb 100644 --- a/client/src/components/vbox.component.jsx +++ b/client/src/components/vbox.component.jsx @@ -93,7 +93,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) {