diff --git a/src/components/forms/local-limits.tsx b/src/components/forms/local-limits.tsx index 2d5629b..624d428 100644 --- a/src/components/forms/local-limits.tsx +++ b/src/components/forms/local-limits.tsx @@ -6,7 +6,7 @@ import { hasLength } from "src/utils"; import type { Limit, LimitCategories } from "src/api/types"; type LocalLimitRef = { - [key in LimitCategories]: HTMLInputElement; + [key in LimitCategories]?: HTMLInputElement; }; type LocalLimitsProps = { @@ -17,7 +17,7 @@ type LocalLimitsProps = { /** Simple wrapper hook since this ref is so specific */ export const useLocalLimitsRef = () => { - return useRef({} as LocalLimitRef); + return useRef({}); }; export const LocalLimits = ({