mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
Fix wrong if statements
This commit is contained in:
@@ -72,7 +72,7 @@ api.iapAndroidVerify = {
|
||||
break;
|
||||
}
|
||||
|
||||
if (amount) throw new Error('INVALID_ITEM_PURCHASED');
|
||||
if (!amount) throw new Error('INVALID_ITEM_PURCHASED');
|
||||
|
||||
await payments.buyGems({
|
||||
user,
|
||||
@@ -150,7 +150,7 @@ api.iapiOSVerify = {
|
||||
amount = 21;
|
||||
break;
|
||||
}
|
||||
if (amount) {
|
||||
if (!amount) {
|
||||
correctReceipt = false;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user