Fix wrong if statements

This commit is contained in:
Phillip Thelen
2016-10-11 20:49:46 +02:00
committed by GitHub
parent c6e2b78982
commit 7568dd52e9

View File

@@ -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;
}