Fix buying free items using Commerce system

This commit is contained in:
Zach Fox 2017-10-04 09:34:32 -07:00
parent cfc4696585
commit fcafbef109

View file

@ -35,7 +35,7 @@ Rectangle {
property string itemHref; property string itemHref;
property double balanceAfterPurchase; property double balanceAfterPurchase;
property bool alreadyOwned: false; property bool alreadyOwned: false;
property int itemPrice; property int itemPrice: -1;
property bool itemIsJson: true; property bool itemIsJson: true;
property bool shouldBuyWithControlledFailure: false; property bool shouldBuyWithControlledFailure: false;
property bool debugCheckoutSuccess: false; property bool debugCheckoutSuccess: false;
@ -339,7 +339,7 @@ Rectangle {
} }
FiraSansSemiBold { FiraSansSemiBold {
id: itemPriceText; id: itemPriceText;
text: root.itemPrice; text: (root.itemPrice === -1) ? "--" : root.itemPrice;
// Text size // Text size
size: 26; size: 26;
// Anchors // Anchors