Fix method call.

This commit is contained in:
James Cole 2023-11-08 05:22:41 +01:00
parent 9973fd2970
commit 77bbe1e213
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
2 changed files with 1 additions and 6 deletions

View File

@ -366,7 +366,7 @@ class Steam
/** @var AccountRepositoryInterface $repository */
$repository = app(AccountRepositoryInterface::class);
$currency = $repository->getAccountCurrency($account);
$currency = null === $currency ? \FireflyIII\Support\Facades\Amount::getDefaultCurrency() : $currency;
$currency = null === $currency ? app('amount')->getDefaultCurrencyByUserGroup($account->user->userGroup) : $currency;
if ($native->id === $currency->id) {
return $this->balance($account, $date);
}

View File

@ -146,11 +146,6 @@
"includes": [
"extension.neon"
]
},
"phpstan/extension-installer": {
"ignore": [
"symplify/phpstan-rules"
]
}
},
"scripts": {