diff --git a/striker-ui/hooks/useChecklist.tsx b/striker-ui/hooks/useChecklist.tsx index c12dd188..a93b910f 100644 --- a/striker-ui/hooks/useChecklist.tsx +++ b/striker-ui/hooks/useChecklist.tsx @@ -14,7 +14,7 @@ const useChecklist = (): { } => { const [checklist, setChecklist] = useState({}); - const checks = useMemo(() => Object.entries(checklist), [checklist]); + const checks = useMemo(() => Object.keys(checklist), [checklist]); const hasChecks = useMemo(() => checks.length > 0, [checks.length]); diff --git a/striker-ui/types/Checklist.d.ts b/striker-ui/types/Checklist.d.ts index 749552db..4ac9a95d 100644 --- a/striker-ui/types/Checklist.d.ts +++ b/striker-ui/types/Checklist.d.ts @@ -1,6 +1,6 @@ type Checklist = Record; -type ArrayChecklist = [keyof Checklist, Checklist[string]][]; +type ArrayChecklist = (keyof Checklist)[]; type BuildDeleteDialogPropsFunction = (args: { confirmDialogProps?: Partial>;