Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Aug 29, 2024
1 parent c363050 commit ac47998
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ import CRUDModal from '@components/CRUDModal/CRUDModal';
import './styles.css';
import { ServiceSessionUser } from '../../types';
import { getAllUsernames, parseServerError } from '@utils/.';
import { updateServiceSessionUsers, updateServiceSession, updateServiceHours } from './EditActionUpdaters';
import {
updateServiceSessionUsers,
updateServiceSession,
updateServiceHours,
} from './EditActionUpdaters';

const calculateInterval = (start: Date, end: Date) => {
const diff = end.getTime() - start.getTime();
Expand Down Expand Up @@ -146,7 +150,7 @@ function EditAction({
setLoading(false);
close();
};

// if any user is ad_hoc, disable ad_hoc_enabled as a selectable option because it's already enabled for >1 user
useEffect(() => {
const hasAdHocUser = form.values.attendees.some((user) => user.ad_hoc);
Expand Down

0 comments on commit ac47998

Please sign in to comment.