mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-09 20:11:22 +00:00
Rename many references from native to primary.
This commit is contained in:
@@ -126,7 +126,7 @@ class PiggyBankStoreRequest extends FormRequest
|
||||
$currencyId = (int) ($data['transaction_currency_id'] ?? 0);
|
||||
$currency = TransactionCurrency::find($currencyId);
|
||||
if (null === $currency) {
|
||||
return Amount::getNativeCurrency();
|
||||
return Amount::getPrimaryCurrency();
|
||||
}
|
||||
|
||||
return $currency;
|
||||
|
||||
@@ -131,7 +131,7 @@ class PiggyBankUpdateRequest extends FormRequest
|
||||
$currencyId = (int) ($data['transaction_currency_id'] ?? 0);
|
||||
$currency = TransactionCurrency::find($currencyId);
|
||||
if (null === $currency) {
|
||||
return Amount::getNativeCurrency();
|
||||
return Amount::getPrimaryCurrency();
|
||||
}
|
||||
|
||||
return $currency;
|
||||
|
||||
Reference in New Issue
Block a user