- {{ formattedDate }}
+ {{ formattedValue }}
diff --git a/libs/ui/src/lib/value/value.component.ts b/libs/ui/src/lib/value/value.component.ts
index 07fc2b136..29863e9bd 100644
--- a/libs/ui/src/lib/value/value.component.ts
+++ b/libs/ui/src/lib/value/value.component.ts
@@ -5,7 +5,7 @@ import {
OnChanges
} from '@angular/core';
import { DEFAULT_DATE_FORMAT } from '@ghostfolio/common/config';
-import { format, isDate } from 'date-fns';
+import { format, isDate, parseISO } from 'date-fns';
import { isNumber } from 'lodash';
@Component({
@@ -28,10 +28,9 @@ export class ValueComponent implements OnChanges {
@Input() value: number | string = '';
public absoluteValue = 0;
- public formattedDate = '';
public formattedValue = '';
- public isDate = false;
public isNumber = false;
+ public isString = false;
public useAbsoluteValue = false;
public constructor() {}
@@ -39,8 +38,8 @@ export class ValueComponent implements OnChanges {
public ngOnChanges() {
if (this.value || this.value === 0) {
if (isNumber(this.value)) {
- this.isDate = false;
this.isNumber = true;
+ this.isString = false;
this.absoluteValue = Math.abs(