v3: fix build and ios IAP

This commit is contained in:
Matteo Pagliazzi
2016-05-19 21:18:43 +02:00
parent c8f55302ca
commit c6da283b54
2 changed files with 6 additions and 1 deletions
@@ -130,7 +130,7 @@ api.iapiOSVerify = {
if (purchaseDataList.length > 0) {
let correctReceipt = true;
for (let index of purchaseDataList) {
for (let index in purchaseDataList) {
switch (purchaseDataList[index].productId) {
case 'com.habitrpg.ios.Habitica.4gems':
payments.buyGems({user, paymentMethod: 'IAP AppleStore', amount: 1});