Parse addresses properly

This commit is contained in:
Aditya Kulkarni
2019-02-01 10:48:06 -08:00
parent 058763a800
commit 82d6e75528

View File

@@ -239,6 +239,12 @@ void MainWindow::turnstileDoMigration(QString fromAddr) {
auto fnUpdateSproutBalance = [=] (QString addr) { auto fnUpdateSproutBalance = [=] (QString addr) {
double bal = 0; double bal = 0;
// The currentText contains the balance as well, so strip that.
if (addr.contains("(")) {
addr = addr.left(addr.indexOf("("));
}
if (addr.startsWith("All")) { if (addr.startsWith("All")) {
bal = fnGetAllSproutBalance(); bal = fnGetAllSproutBalance();
} else { } else {