Feature/add missing default currency to prepare currencies function (#3042)
* Add missing default currency * Update changelog
This commit is contained in:
parent
6be38a1c19
commit
c002e37285
@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Improved the language localization for German (`de`)
|
||||
- Upgraded `prisma` from version `5.9.1` to `5.10.2`
|
||||
|
||||
### Fixed
|
||||
|
||||
- Added the missing default currency to the prepare currencies function in the exchange rate data service
|
||||
|
||||
## 2.55.0 - 2024-02-22
|
||||
|
||||
### Added
|
||||
|
@ -451,7 +451,7 @@ export class ExchangeRateDataService {
|
||||
}
|
||||
|
||||
private async prepareCurrencies(): Promise<string[]> {
|
||||
let currencies: string[] = [];
|
||||
let currencies: string[] = [DEFAULT_CURRENCY];
|
||||
|
||||
(
|
||||
await this.prismaService.account.findMany({
|
||||
|
@ -159,7 +159,7 @@ export class CurrencySelectorComponent
|
||||
|
||||
private validateRequired() {
|
||||
const requiredCheck = super.required
|
||||
? !super.value.label || !super.value.value
|
||||
? !super.value?.label || !super.value?.value
|
||||
: false;
|
||||
|
||||
if (requiredCheck) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user