Various code cleanup.

This commit is contained in:
James Cole
2023-10-29 06:22:57 +01:00
parent aa1a521cf0
commit 59d96f2893
10 changed files with 13 additions and 15 deletions

View File

@@ -142,7 +142,7 @@ class UpgradeCurrencyPreferences extends Command
// set the default currency for the user and for the group:
$preference = $this->getPreference($user);
$defaultCurrency = TransactionCurrency::where('code', $preference)->first();
if (null === $currency) {
if (null === $defaultCurrency) {
// get EUR
$defaultCurrency = TransactionCurrency::where('code', 'EUR')->first();
}