mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-10 12:24:50 +00:00
Various code cleanup.
This commit is contained in:
@@ -124,8 +124,8 @@ class PiggyBankTransformer extends TransformerAbstract
|
||||
$accountRepos = app(AccountRepositoryInterface::class);
|
||||
$accountRepos->setUser($account->user);
|
||||
$currencyId = (int)$accountRepos->getMetaValue($account, 'currency_id');
|
||||
|
||||
if ($currencyId === 0) {
|
||||
$currency = null;
|
||||
if (0 === $currencyId) {
|
||||
$currency = app('amount')->getDefaultCurrencyByUser($account->user);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user