Browse Source
Feature/add missing default currency to prepare currencies function (#3042)
* Add missing default currency
* Update changelog
pull/3043/head
Thomas Kaul
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
6 additions and
2 deletions
-
CHANGELOG.md
-
apps/api/src/services/exchange-rate-data/exchange-rate-data.service.ts
-
libs/ui/src/lib/currency-selector/currency-selector.component.ts
|
|
@ -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) { |
|
|
|