Clean up some code.

This commit is contained in:
James Cole
2020-04-12 06:24:35 +02:00
parent 4a7d9b130a
commit 6daf083b3f
6 changed files with 25 additions and 21 deletions

View File

@@ -438,7 +438,7 @@ class AccountController extends Controller
// if the account is not expense or revenue, just use the account's default currency.
if (!in_array($account->accountType->type, [AccountType::REVENUE, AccountType::EXPENSE], true)) {
$currencies= [$this->accountRepository->getAccountCurrency($account) ?? app('amount')->getDefaultCurrency()];
$currencies = [$this->accountRepository->getAccountCurrency($account) ?? app('amount')->getDefaultCurrency()];
}
/** @var TransactionCurrency $currency */