mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
update API's monthly Gem cap messages to use the friendly website version (#12150)
* allow subscribers to buy their final monthly gem * replace old montly Gem cap messages with friendlier new ones
This commit is contained in:
@@ -47,7 +47,7 @@ export class BuyGemOperation extends AbstractGoldItemOperation { // eslint-disab
|
||||
super.canUserPurchase(user, item);
|
||||
|
||||
if (user.purchased.plan.gemsBought >= this.convCap) {
|
||||
throw new NotAuthorized(this.i18n('reachedGoldToGemCap', { convCap: this.convCap }));
|
||||
throw new NotAuthorized(this.i18n('maxBuyGems', { convCap: this.convCap }));
|
||||
}
|
||||
|
||||
if (user.purchased.plan.gemsBought + this.quantity > this.convCap) {
|
||||
|
||||
Reference in New Issue
Block a user