Skip to content

Commit

Permalink
fix(reminders): update to use explicit role
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed Dec 14, 2024
1 parent b5ba3da commit 2259650
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/features/reminders/useReminders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { branchFieldReportsState } from '@states/branch_field_service_reports';
import useCurrentUser from '@hooks/useCurrentUser';
import useMinistryMonthlyRecord from '@features/ministry/hooks/useMinistryMonthlyRecord';
import usePerson from '@features/persons/hooks/usePerson';
import { secretaryRoleState } from '@states/settings';

const useReminders = () => {
const { t } = useAppTranslation();
Expand All @@ -16,11 +17,12 @@ const useReminders = () => {

const currentReport = useMemo(() => currentReportMonth(), []);

const { isSecretary, person } = useCurrentUser();
const { person } = useCurrentUser();

const { status } = useMinistryMonthlyRecord(currentReport);

const branchReports = useRecoilValue(branchFieldReportsState);
const isSecretary = useRecoilValue(secretaryRoleState);

const [reminders, setReminders] = useState<ReminderItemProps[]>([]);

Expand Down

0 comments on commit 2259650

Please sign in to comment.