mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
fix tests for /members/transfer-gems
This commit is contained in:
@@ -325,7 +325,7 @@ api.transferGems = {
|
||||
let gemAmount = req.body.gemAmount;
|
||||
let amount = gemAmount / 4;
|
||||
|
||||
if (!amount || amount <= 0 || sender.balance < amount) {
|
||||
if (amount <= 0 || sender.balance < amount) {
|
||||
throw new NotAuthorized(res.t('badAmountOfGemsToSend'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user