AppContext: updateBalance: don't throw runtime error

This commit is contained in:
tobtoht 2020-11-02 11:03:08 +01:00
parent 87fd142ffd
commit 7a1ac42b1e
1 changed files with 1 additions and 1 deletions

View File

@ -791,7 +791,7 @@ void AppContext::storeWallet() {
void AppContext::updateBalance() {
if(!this->currentWallet)
throw std::runtime_error("this should not happen, ever");
return;
AppContext::balance = this->currentWallet->balance() / globals::cdiv;
auto balance_str = QString::number(balance, 'f');