From 287258eea244ec9d6112fa69baeab97fca37d2a5 Mon Sep 17 00:00:00 2001 From: Attila Cseh Date: Sun, 20 Jul 2025 03:04:26 +0200 Subject: [PATCH] code review fixes --- CHANGELOG.md | 3 +++ .../create-or-update-activity-dialog.component.ts | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 360f0ada9..2e2ebaab7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Improved the language localization for Italian (`it`) - Improved the language localization for Portuguese (`pt`) - Improved the language localization for Spanish (`es`) + +### Fixed + - Fixed the quantity value in the update activity dialog ## 2.182.0 - 2025-07-16 diff --git a/apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.component.ts b/apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.component.ts index 741591bc2..656e4a88f 100644 --- a/apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.component.ts +++ b/apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.component.ts @@ -355,6 +355,11 @@ export class GfCreateOrUpdateActivityDialog implements OnDestroy { this.activityForm.get('fee').setValue(0); this.activityForm.get('name').setValidators(Validators.required); this.activityForm.get('name').updateValueAndValidity(); + + if (type === 'ITEM') { + this.activityForm.get('quantity').setValue(1); + } + this.activityForm .get('searchSymbol') .removeValidators(Validators.required);