tja
This commit is contained in:
@@ -39,9 +39,9 @@ const dateFormat = new Intl.DateTimeFormat('de-DE', {
|
||||
});
|
||||
|
||||
export function formatDate(value: string | null | undefined): string {
|
||||
if (!value) return '—';
|
||||
if (!value) return '-';
|
||||
const parsed = new Date(value);
|
||||
return Number.isNaN(parsed.getTime()) ? '—' : dateFormat.format(parsed);
|
||||
return Number.isNaN(parsed.getTime()) ? '-' : dateFormat.format(parsed);
|
||||
}
|
||||
|
||||
export function formatAmount(amount: number): string {
|
||||
|
||||
Reference in New Issue
Block a user