Use sellWarningNote as warning string

This commit is contained in:
Gurkirpal
2019-09-04 19:26:19 +05:30
parent c39f53c224
commit 9709b92d33

View File

@@ -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;