diff --git a/frontend/src/app/components/checkin/check-in-form-metric/MetricCheckInDirective.ts b/frontend/src/app/components/checkin/check-in-form-metric/MetricCheckInDirective.ts index f25f36e680..f5a99f2a90 100644 --- a/frontend/src/app/components/checkin/check-in-form-metric/MetricCheckInDirective.ts +++ b/frontend/src/app/components/checkin/check-in-form-metric/MetricCheckInDirective.ts @@ -41,6 +41,7 @@ export class MetricCheckInDirective implements ControlValueAccessor { const value: string = param || '0'; if (value.toString().at(0) == '-') { this.onChange(+('-' + value.toString().replace(this.CHAR_REGEX, ''))); + return; } this.onChange(Number(value.toString().replace(this.CHAR_REGEX, ''))); }