diff --git a/src/app/components/tournament-registrations/tournament-registrations.component.html b/src/app/components/tournament-registrations/tournament-registrations.component.html
index e9e38eb..c50836e 100644
--- a/src/app/components/tournament-registrations/tournament-registrations.component.html
+++ b/src/app/components/tournament-registrations/tournament-registrations.component.html
@@ -28,7 +28,7 @@
{{ registration.player.club }} |
@if (event.doublesEvent) {
{{ registration.partner?.club }} |
- {{ registration.partner | fullName }} |
+ {{ registration.partner | fullName: '' }} |
}
}
diff --git a/src/app/pipes/fullname-pipe.ts b/src/app/pipes/fullname-pipe.ts
index a53dfd7..b5279b2 100644
--- a/src/app/pipes/fullname-pipe.ts
+++ b/src/app/pipes/fullname-pipe.ts
@@ -4,11 +4,11 @@ import { Pipe, PipeTransform } from '@angular/core';
standalone: true
})
export class FullNamePipe implements PipeTransform {
- transform(person: any, args?: any): any {
+ transform(person: any, defaultValue: string = 'Invalteller'): any {
if (person) {
return [person.firstName, person.middleName, person.lastName].filter(Boolean).join(" ");
} else {
- return "Invalteller";
+ return defaultValue;
}
}
}