mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-08-01 03:30:34 +00:00
fix buying gems for gold
This commit is contained in:
parent
39dd893353
commit
cce23d4747
1 changed files with 1 additions and 1 deletions
|
|
@ -215,7 +215,7 @@ public class PurchaseDialog extends AlertDialog {
|
|||
}
|
||||
} else if (shopItem.purchaseType.equals("quests") && shopItem.getCurrency().equals("gold")) {
|
||||
observable = inventoryRepository.purchaseQuest(shopItem.key);
|
||||
} else if ("gold".equals(shopItem.currency)) {
|
||||
} else if ("gold".equals(shopItem.currency) && !"gem".equals(shopItem.key)) {
|
||||
observable = inventoryRepository.buyItem(user, shopItem.key, shopItem.value).flatMap(buyResponse -> Observable.just(null));
|
||||
} else {
|
||||
observable = inventoryRepository.purchaseItem(shopItem.purchaseType, shopItem.key);
|
||||
|
|
|
|||
Loading…
Reference in a new issue