From d6663acee59a11d0787fe549f897d516f3d7a43a Mon Sep 17 00:00:00 2001 From: csehatt741 Date: Tue, 4 Mar 2025 13:51:38 +0100 Subject: [PATCH] Code review fixes --- CHANGELOG.md | 1 + apps/api/src/app/admin/admin.service.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e11471a63..c7d89c530 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Handled an exception in the export functionality related to platforms - Handled an exception in the benchmark service related to unnamed asset profiles +- Fixed the functionality to delete an asset profile of type currency ## 2.142.0 - 2025-02-28 diff --git a/apps/api/src/app/admin/admin.service.ts b/apps/api/src/app/admin/admin.service.ts index 339cb5be2..7f2b0da5a 100644 --- a/apps/api/src/app/admin/admin.service.ts +++ b/apps/api/src/app/admin/admin.service.ts @@ -117,7 +117,9 @@ export class AdminService { if (customCurrencies.includes(currency)) { const updatedCustomCurrencies = customCurrencies.filter( - (aCurrency) => aCurrency !== currency + (customCurrency) => { + return customCurrency !== currency; + } ); await this.putSetting(