Fixed bug in generating error messages when out of character slots

This commit is contained in:
Stefan Zermatten
2022-04-22 11:31:59 +02:00
parent 13b6689ba4
commit f440e030cf

View File

@@ -4,7 +4,7 @@ import Creatures from '/imports/api/creature/creatures/Creatures.js';
export default function assertHasCharactersSlots(userId) {
if (characterSlotsRemaining(userId) <= 0) {
throw new Meteor.Error('characterSlotLimit',
`You are already at your limit of ${tier.characterSlots} characters`)
'No character slots left')
}
}