commit 8f719a45e93f9c58daabfa144f8c3cf894ffb8e9 parent 396eb369894874c8b52a0a52ef3bba5c94577b18 Author: Florian Dold <florian@dold.me> Date: Sat, 18 Jul 2026 11:55:34 +0200 fix month vs months in duration input components Diffstat:
| M | packages/web-util/src/forms/fields/InputDuration.tsx | | | 2 | +- |
| M | packages/web-util/src/forms/fields/InputDurationText.tsx | | | 4 | ++-- |
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/packages/web-util/src/forms/fields/InputDuration.tsx b/packages/web-util/src/forms/fields/InputDuration.tsx @@ -47,7 +47,7 @@ export function InputDuration(props: UIFormProps<Duration>): VNode { const strHours = toString(specDuration?.hours ?? 0) ?? ""; const strMinutes = toString(specDuration?.minutes ?? 0) ?? ""; const strDays = toString(specDuration?.days ?? 0) ?? ""; - const strMonths = toString(specDuration?.month ?? 0) ?? ""; + const strMonths = toString(specDuration?.months ?? 0) ?? ""; const strYears = toString(specDuration?.years ?? 0) ?? ""; useEffect(() => { diff --git a/packages/web-util/src/forms/fields/InputDurationText.tsx b/packages/web-util/src/forms/fields/InputDurationText.tsx @@ -79,8 +79,8 @@ export function InputDurationText(props: UIFormProps<string>): VNode { if (spec?.years) { result += `${spec.years}Y `; } - if (spec?.month) { - result += `${spec.month}M `; + if (spec?.months) { + result += `${spec.months}M `; } if (spec?.days) { result += `${spec.days}D `;