diff --git a/website/common/script/ops/buy/purchase.js b/website/common/script/ops/buy/purchase.js index 02c00dec26..2808cd2b98 100644 --- a/website/common/script/ops/buy/purchase.js +++ b/website/common/script/ops/buy/purchase.js @@ -54,7 +54,7 @@ function purchaseItem (user, item, price, type, key) { } else if (type === 'bundles') { const subType = item.type; forEach(item.bundleKeys, bundledKey => { - if (!user.items[subType][bundledKey] || user.items[subType][key] < 0) { + if (!user.items[subType][bundledKey] || user.items[subType][bundledKey] < 0) { user.items[subType][bundledKey] = 0; } user.items[subType][bundledKey] += 1;