Parse balance correctly

This commit is contained in:
Zach Fox 2017-08-21 15:07:54 -07:00
parent ed5445ec51
commit db16035f26
2 changed files with 2 additions and 1 deletions

View file

@ -28,7 +28,7 @@ Item {
Hifi.QmlCommerce {
id: commerce;
onBalanceResult : {
balanceText.text = parseFloat(balance/100).toFixed(2);
balanceText.text = parseFloat(result.data.balance/100).toFixed(2);
}
}

View file

@ -451,6 +451,7 @@ Rectangle {
root.lastPage = "passphrase";
choosePassphraseContainer.visible = false;
privateKeysReadyContainer.visible = true;
commerce.balance(); // Do this here so that keys are generated. Order might change as backend changes?
}
}
}