antidote display and functionality (#10199)
* update antidote display and functionality - fixes #9758 and #10160 update antidote display and functionality - fixes #9758 and #10160 update antidote display and functionality - fixes #9758 and #10160 update antidote display and functionality - fixes #9758 and #10160 * clean up / refactor * prevent unpin of all items which don't have a pinType * remove the double boolean casting / fix lint
This commit is contained in:
@@ -26,9 +26,7 @@ export class BuyMarketGearOperation extends AbstractGoldItemOperation {
|
||||
extractAndValidateParams (user, req) {
|
||||
let key = this.key = get(req, 'params.key');
|
||||
if (!key) throw new BadRequest(this.i18n('missingKeyParam'));
|
||||
|
||||
let item = content.gear.flat[key];
|
||||
|
||||
if (!item) throw new NotFound(this.i18n('itemNotFound', {key}));
|
||||
|
||||
this.canUserPurchase(user, item);
|
||||
|
||||
Reference in New Issue
Block a user