Skip to content
Permalink
Browse files

fix(buy): correct content constant

  • Loading branch information
SabreCat committed Jan 18, 2018
1 parent fa37a39 commit a9d579d828d5177490c1199b9f921c6a2b5eb787
Showing with 1 addition and 1 deletion.
  1. +1 −1 website/common/script/ops/buyGear.js
@@ -37,7 +37,7 @@ module.exports = function buyGear (user, req = {}, analytics) {

let itemIndex = Number(item.index);

if (Number.isInteger(itemIndex) && content.CLASSES.includes(item.klass)) {
if (Number.isInteger(itemIndex) && content.classes.includes(item.klass)) {
let previousLevelGear = key.replace(/[0-9]/, itemIndex - 1);
let hasPreviousLevelGear = user.items.gear.owned[previousLevelGear];
let checkIndexToType = itemIndex > (item.type === 'weapon' || item.type === 'shield' && item.klass === 'rogue' ? 0 : 1);

0 comments on commit a9d579d

Please sign in to comment.
You can’t perform that action at this time.