Fixed bug in generating error messages when out of character slots
This commit is contained in:
@@ -4,7 +4,7 @@ import Creatures from '/imports/api/creature/creatures/Creatures.js';
|
|||||||
export default function assertHasCharactersSlots(userId) {
|
export default function assertHasCharactersSlots(userId) {
|
||||||
if (characterSlotsRemaining(userId) <= 0) {
|
if (characterSlotsRemaining(userId) <= 0) {
|
||||||
throw new Meteor.Error('characterSlotLimit',
|
throw new Meteor.Error('characterSlotLimit',
|
||||||
`You are already at your limit of ${tier.characterSlots} characters`)
|
'No character slots left')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user