TickerWidget: fix balance

This commit is contained in:
tobtoht 2021-05-25 19:34:23 +02:00
parent 4fff4b8556
commit 23d1ff2c78
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -68,7 +68,7 @@ BalanceTickerWidget::BalanceTickerWidget(QWidget *parent, QSharedPointer<AppCont
}
void BalanceTickerWidget::updateDisplay() {
double balance = (m_totalBalance ? m_ctx->wallet->balanceAll() : m_ctx->wallet->balanceAll()) / constants::cdiv;
double balance = (m_totalBalance ? m_ctx->wallet->balanceAll() : m_ctx->wallet->balance()) / constants::cdiv;
QString fiatCurrency = config()->get(Config::preferredFiatCurrency).toString();
double balanceFiatAmount = appData()->prices.convert("XMR", fiatCurrency, balance);
if (balanceFiatAmount < 0)