mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 21:57:22 +01:00
allow subscribers to buy their final monthly gem (#10331)
This commit is contained in:
@@ -49,7 +49,7 @@ export class BuyGemOperation extends AbstractGoldItemOperation {
|
||||
throw new NotAuthorized(this.i18n('reachedGoldToGemCap', {convCap: this.convCap}));
|
||||
}
|
||||
|
||||
if (user.purchased.plan.gemsBought + this.quantity >= this.convCap) {
|
||||
if (user.purchased.plan.gemsBought + this.quantity > this.convCap) {
|
||||
throw new NotAuthorized(this.i18n('reachedGoldToGemCapQuantity', {
|
||||
convCap: this.convCap,
|
||||
quantity: this.quantity,
|
||||
|
||||
Reference in New Issue
Block a user