mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Use sellWarningNote as warning string
This commit is contained in:
@@ -44,7 +44,7 @@ module.exports = function sell (user, req = {}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (content[type][key].sellWarningNote) {
|
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;
|
user.items[type][key] -= amount;
|
||||||
|
|||||||
Reference in New Issue
Block a user