Fix nullpointer.

This commit is contained in:
James Cole 2021-10-04 14:57:30 +02:00
parent d5045b51c7
commit 7bd9f55df8
No known key found for this signature in database
GPG Key ID: BDE6667570EADBD5

View File

@ -108,6 +108,7 @@ class IndexController extends Controller
$account->interest = number_format((float)$this->repository->getMetaValue($account, 'interest'), 4, '.', '');
$account->interestPeriod = (string)trans(sprintf('firefly.interest_calc_%s', $this->repository->getMetaValue($account, 'interest_period')));
$account->accountTypeString = (string)trans(sprintf('firefly.account_type_%s', $account->accountType->type));
$account->current_debt = '0';
}
);