mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 23:34:09 +02:00
Error handling in checkout
This commit is contained in:
parent
67dfccafec
commit
a4175b0428
1 changed files with 6 additions and 0 deletions
|
@ -1080,6 +1080,12 @@ Rectangle {
|
||||||
//
|
//
|
||||||
|
|
||||||
function updateCheckoutQMLFromHTTP(error, result) {
|
function updateCheckoutQMLFromHTTP(error, result) {
|
||||||
|
if (error || (result.status !== 'success')) {
|
||||||
|
// The QML will display a loading spinner forever if the user is stuck here.
|
||||||
|
console.log("Error in Checkout.qml when getting marketplace item info!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
root.itemInfoReceived = true;
|
root.itemInfoReceived = true;
|
||||||
root.itemName = result.data.title;
|
root.itemName = result.data.title;
|
||||||
root.itemPrice = result.data.cost;
|
root.itemPrice = result.data.cost;
|
||||||
|
|
Loading…
Reference in a new issue