diff --git a/interface/resources/qml/hifi/commerce/checkout/Checkout.qml b/interface/resources/qml/hifi/commerce/checkout/Checkout.qml
index 04f106d0f9..14a84311aa 100644
--- a/interface/resources/qml/hifi/commerce/checkout/Checkout.qml
+++ b/interface/resources/qml/hifi/commerce/checkout/Checkout.qml
@@ -40,12 +40,20 @@ Rectangle {
Hifi.QmlCommerce {
id: commerce;
+ onAccountResult: {
+ if (result.status === "success") {
+ commerce.getKeyFilePathIfExists();
+ } else {
+ // unsure how to handle a failure here. We definitely cannot proceed.
+ }
+ }
+
onLoginStatusResult: {
if (!isLoggedIn && root.activeView !== "needsLogIn") {
root.activeView = "needsLogIn";
} else if (isLoggedIn) {
root.activeView = "initialize";
- commerce.getKeyFilePathIfExists();
+ commerce.account();
}
}
@@ -203,7 +211,7 @@ Rectangle {
commerce.getLoginStatus();
}
}
-
+
HifiWallet.NeedsLogIn {
id: needsLogIn;
visible: root.activeView === "needsLogIn";
@@ -239,7 +247,7 @@ Rectangle {
}
}
}
-
+
//
// "WALLET NOT SET UP" START
//
@@ -250,7 +258,7 @@ Rectangle {
anchors.bottom: parent.bottom;
anchors.left: parent.left;
anchors.right: parent.right;
-
+
RalewayRegular {
id: notSetUpText;
text: "Your wallet isn't set up.
Set up your Wallet (no credit card necessary) to claim your free HFC " +
@@ -281,7 +289,7 @@ Rectangle {
anchors.left: parent.left;
anchors.bottom: parent.bottom;
anchors.bottomMargin: 24;
-
+
// "Cancel" button
HifiControlsUit.Button {
id: cancelButton;