This commit is contained in:
1 parent
673f9f1706
commit
59519cb182
2 files changed
+3
-3
No files matched your search
@@ -28,7 +28,7 @@
|
||||
<td class="align-middle">{{ registration.player.club }}</td>
|
||||
@if (event.doublesEvent) {
|
||||
<td class="align-middle">{{ registration.partner?.club }}</td>
|
||||
<td class="align-middle">{{ registration.partner | fullName }}</td>
|
||||
<td class="align-middle">{{ registration.partner | fullName: '' }}</td>
|
||||
}
|
||||
</tr>
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user