fix(striker-ui): ensure boolean returned from getCheck in checklist hook

main
Tsu-ba-me 11 months ago
parent 8b55f73300
commit cecd0d7cd6
  1. 2
      striker-ui/hooks/useChecklist.tsx

@ -58,7 +58,7 @@ const useChecklist = ({
);
const getCheck = useCallback<GetCheckFunction>(
(key) => checklist[key],
(key) => Boolean(checklist[key]),
[checklist],
);

Loading…
Cancel
Save