umpires can be added to courts as umpires (removal also)

This commit is contained in:
2026-05-27 21:10:38 +02:00
parent 71c3733363
commit 0c071c0621
10 changed files with 436 additions and 90 deletions
+4 -1
View File
@@ -6,7 +6,10 @@ import { Umpire } from 'db';
standalone: true
})
export class FullnamePipe implements PipeTransform {
transform(value: Umpire, ...args: unknown[]): string {
transform(value: Umpire | undefined, ...args: unknown[]): string {
if (typeof value === 'undefined') {
return '';
}
// TODO: in case of multilang, change here
return value.lastName + ' ' + value.firstName;
}