mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Improved number validation (#11131)
* fix(purchasing): more number validation * test(purchasing): add error cases Also refactor NaN check and create client mixin * fix(purchasing): cover "purchase" cases
This commit is contained in:
@@ -9,6 +9,7 @@ module.exports = {
|
||||
itemNotFound: 'Item "<%= key %>" not found.',
|
||||
questNotFound: 'Quest "<%= key %>" not found.',
|
||||
spellNotFound: 'Skill "<%= spellId %>" not found.',
|
||||
invalidQuantity: 'Quantity to purchase must be a positive whole number.',
|
||||
invalidTypeEquip: '"type" must be one of "equipped", "pet", "mount", "costume"',
|
||||
missingPetFoodFeed: '"pet" and "food" are required parameters.',
|
||||
missingEggHatchingPotion: '"egg" and "hatchingPotion" are required parameters.',
|
||||
|
||||
Reference in New Issue
Block a user