diff --git a/interface/resources/qml/hifi/commerce/checkout/Checkout.qml b/interface/resources/qml/hifi/commerce/checkout/Checkout.qml index bf73decf9b..27acb121ca 100644 --- a/interface/resources/qml/hifi/commerce/checkout/Checkout.qml +++ b/interface/resources/qml/hifi/commerce/checkout/Checkout.qml @@ -135,10 +135,10 @@ Rectangle { root.itemType = "avatar"; } else if (root.itemHref.indexOf('.json.gz') > -1) { root.itemType = "contentSet"; + } else if (root.itemHref.indexOf('.app.json') > -1) { + root.itemType = "app"; } else if (root.itemHref.indexOf('.json') > -1) { root.itemType = "entity"; // "wearable" type handled later - } else if (root.itemHref.indexOf('.js') > -1) { - root.itemType = "app"; } else { console.log("WARNING - Item type is UNKNOWN!"); root.itemType = "entity"; diff --git a/interface/resources/qml/hifi/commerce/purchases/Purchases.qml b/interface/resources/qml/hifi/commerce/purchases/Purchases.qml index b01dfcfce3..9b333a60cd 100644 --- a/interface/resources/qml/hifi/commerce/purchases/Purchases.qml +++ b/interface/resources/qml/hifi/commerce/purchases/Purchases.qml @@ -401,10 +401,10 @@ Rectangle { "wearable"; } else if (model.root_file_url.endsWith('.json.gz')) { "contentSet"; + } else if (model.root_file_url.endsWith('.app.json')) { + "app"; } else if (model.root_file_url.endsWith('.json')) { "entity"; - } else if (model.root_file_url.endsWith('.js')) { - "app"; } else { "unknown"; } diff --git a/scripts/system/marketplaces/marketplaces.js b/scripts/system/marketplaces/marketplaces.js index 8c41906d77..1eb16cf453 100644 --- a/scripts/system/marketplaces/marketplaces.js +++ b/scripts/system/marketplaces/marketplaces.js @@ -551,7 +551,7 @@ var selectionDisplay = null; // for gridTool.js to ignore case 'checkout_rezClicked': case 'purchases_rezClicked': if (message.itemType === "app") { - + console.log("How did you get here? You can't buy apps yet!"); } else { rezEntity(message.itemHref, message.itemType); }