mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +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) {
|
||||
throw new NotAuthorized(i18n.t('positiveAmountRequired', req.language));
|
||||
throw new NotAuthorized(content[type][key].sellWarningNote());
|
||||
}
|
||||
|
||||
user.items[type][key] -= amount;
|
||||
|
||||
Reference in New Issue
Block a user