mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 04:53:28 +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) {
|
||||
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.itemName = result.data.title;
|
||||
root.itemPrice = result.data.cost;
|
||||
|
|
Loading…
Reference in a new issue