diff --git a/geneit_app/src/api/MemberApi.ts b/geneit_app/src/api/MemberApi.ts index 6161e6d..422f9bc 100644 --- a/geneit_app/src/api/MemberApi.ts +++ b/geneit_app/src/api/MemberApi.ts @@ -176,6 +176,9 @@ export class Member implements MemberDataApi { } export function fmtDate(d?: DateValue): string { + if (d?.year && !d.month && !d.day) + return d?.year?.toString().padStart(4, "0"); + return `${d?.day?.toString().padStart(2, "0") ?? "__"}/${ d?.month?.toString().padStart(2, "0") ?? "__" }/${d?.year?.toString().padStart(4, "0") ?? "__"}`; diff --git a/geneit_app/src/widgets/forms/MemberInput.tsx b/geneit_app/src/widgets/forms/MemberInput.tsx index 03ea5a1..54c37e5 100644 --- a/geneit_app/src/widgets/forms/MemberInput.tsx +++ b/geneit_app/src/widgets/forms/MemberInput.tsx @@ -69,7 +69,7 @@ export function MemberInput(p: { const res = options.filter((m) => m?.fullName.toLowerCase().includes(state.inputValue) ); - res.length = Math.min(15, res.length); + res.length = Math.min(20, res.length); return res; }} getOptionLabel={(o) => o?.fullName ?? ""}