From 9709b92d33ff3eb47411f8ae22a4f6a97db8d56b Mon Sep 17 00:00:00 2001 From: Gurkirpal Date: Wed, 4 Sep 2019 19:26:19 +0530 Subject: [PATCH] Use sellWarningNote as warning string --- website/common/script/ops/sell.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/common/script/ops/sell.js b/website/common/script/ops/sell.js index ac0c4d4e75..2973c79499 100644 --- a/website/common/script/ops/sell.js +++ b/website/common/script/ops/sell.js @@ -44,7 +44,7 @@ module.exports = function sell (user, req = {}) { } if (content[type][key].sellWarningNote) { - throw new NotAuthorized(i18n.t('positiveAmountRequired', req.language)); + throw new NotAuthorized(content[type][key].sellWarningNote()); } user.items[type][key] -= amount;