src/applications/check-in/hooks/useSendPreCheckInData.jsx
Function useSendPreCheckInData
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useSendPreCheckInData = () => {
const selectForm = useMemo(makeSelectForm, []);
const { data } = useSelector(selectForm);
const [isLoading, setIsLoading] = useState(true);
const {
Function sendPreCheckInData
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function sendPreCheckInData() {
// Set pre-checkin complete and send demographics flags.
const preCheckInData = { uuid: token };
if (demographicsUpToDate) {