Add feedback for member creation

This commit is contained in:
2023-08-08 14:34:33 +02:00
parent c6d0ff187c
commit b828fce039
2 changed files with 11 additions and 0 deletions

View File

@ -98,6 +98,14 @@ export class Member implements MemberApi {
family_id: family_id,
});
}
get fullName(): string {
const firstName = this.first_name ?? "";
return firstName.length === 0
? this.last_name ?? ""
: `${firstName} ${this.last_name ?? ""}`;
}
}
export class MemberApi {