mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 23:42:12 +00:00
Use sellWarningNote as warning string
This commit is contained in:
parent
c39f53c224
commit
9709b92d33
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue