From a57d85369cebc74d6348c2dc895c4f42882f8281 Mon Sep 17 00:00:00 2001 From: "adghayes@gmail.com" Date: Wed, 4 Oct 2023 16:21:57 +0300 Subject: [PATCH] remove TODO comments that do not seem to be relevant anymore --- .../src/screens/reporting/all_precincts_tally_report_screen.tsx | 2 +- .../src/screens/reporting/ballot_count_report_builder.tsx | 2 +- .../src/screens/reporting/full_election_tally_report_screen.tsx | 2 +- .../screens/reporting/precinct_ballot_count_report_screen.tsx | 2 +- .../screens/reporting/single_precinct_tally_report_screen.tsx | 2 +- .../frontend/src/screens/reporting/tally_report_builder.tsx | 2 +- .../reporting/voting_method_ballot_count_report_screen.tsx | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/admin/frontend/src/screens/reporting/all_precincts_tally_report_screen.tsx b/apps/admin/frontend/src/screens/reporting/all_precincts_tally_report_screen.tsx index decf8a2fd65..8baf74827ed 100644 --- a/apps/admin/frontend/src/screens/reporting/all_precincts_tally_report_screen.tsx +++ b/apps/admin/frontend/src/screens/reporting/all_precincts_tally_report_screen.tsx @@ -12,7 +12,7 @@ export const SCREEN_TITLE = 'All Precincts Tally Report'; export function AllPrecinctsTallyReportScreen(): JSX.Element { const { electionDefinition, auth } = useContext(AppContext); assert(electionDefinition); - assert(isElectionManagerAuth(auth)); // TODO(auth) check permissions for viewing tally reports. + assert(isElectionManagerAuth(auth)); return ( diff --git a/apps/admin/frontend/src/screens/reporting/ballot_count_report_builder.tsx b/apps/admin/frontend/src/screens/reporting/ballot_count_report_builder.tsx index d2bd541fdc7..4b3d11491a8 100644 --- a/apps/admin/frontend/src/screens/reporting/ballot_count_report_builder.tsx +++ b/apps/admin/frontend/src/screens/reporting/ballot_count_report_builder.tsx @@ -57,7 +57,7 @@ const BreakdownSelectContainer = styled.div` export function BallotCountReportBuilder(): JSX.Element { const { electionDefinition, auth } = useContext(AppContext); assert(electionDefinition); - assert(isElectionManagerAuth(auth)); // TODO(auth) check permissions for viewing reports. + assert(isElectionManagerAuth(auth)); const { election } = electionDefinition; const getManualResultsMetadataQuery = getManualResultsMetadata.useQuery(); diff --git a/apps/admin/frontend/src/screens/reporting/full_election_tally_report_screen.tsx b/apps/admin/frontend/src/screens/reporting/full_election_tally_report_screen.tsx index b55da8463d5..c39209b2653 100644 --- a/apps/admin/frontend/src/screens/reporting/full_election_tally_report_screen.tsx +++ b/apps/admin/frontend/src/screens/reporting/full_election_tally_report_screen.tsx @@ -25,7 +25,7 @@ export function FullElectionTallyReportScreen(): JSX.Element { const { electionDefinition, isOfficialResults, auth } = useContext(AppContext); assert(electionDefinition); - assert(isElectionManagerAuth(auth)); // TODO(auth) check permissions for viewing tally reports. + assert(isElectionManagerAuth(auth)); const [isMarkOfficialModalOpen, setIsMarkOfficialModalOpen] = useState(false); diff --git a/apps/admin/frontend/src/screens/reporting/precinct_ballot_count_report_screen.tsx b/apps/admin/frontend/src/screens/reporting/precinct_ballot_count_report_screen.tsx index da0a1edf804..25bede81607 100644 --- a/apps/admin/frontend/src/screens/reporting/precinct_ballot_count_report_screen.tsx +++ b/apps/admin/frontend/src/screens/reporting/precinct_ballot_count_report_screen.tsx @@ -12,7 +12,7 @@ export const SCREEN_TITLE = 'Precinct Ballot Count Report'; export function PrecinctBallotCountReport(): JSX.Element { const { electionDefinition, auth } = useContext(AppContext); assert(electionDefinition); - assert(isElectionManagerAuth(auth)); // TODO(auth) check permissions for viewing reports. + assert(isElectionManagerAuth(auth)); return ( diff --git a/apps/admin/frontend/src/screens/reporting/single_precinct_tally_report_screen.tsx b/apps/admin/frontend/src/screens/reporting/single_precinct_tally_report_screen.tsx index c500488e888..c86204d29d9 100644 --- a/apps/admin/frontend/src/screens/reporting/single_precinct_tally_report_screen.tsx +++ b/apps/admin/frontend/src/screens/reporting/single_precinct_tally_report_screen.tsx @@ -26,7 +26,7 @@ export function SinglePrecinctTallyReportScreen(): JSX.Element { const { electionDefinition, auth } = useContext(AppContext); assert(electionDefinition); const { election } = electionDefinition; - assert(isElectionManagerAuth(auth)); // TODO(auth) check permissions for viewing tally reports. + assert(isElectionManagerAuth(auth)); const [precinctId, setPrecinctId] = useState(); diff --git a/apps/admin/frontend/src/screens/reporting/tally_report_builder.tsx b/apps/admin/frontend/src/screens/reporting/tally_report_builder.tsx index b97ffcfe2de..bf7a03d2416 100644 --- a/apps/admin/frontend/src/screens/reporting/tally_report_builder.tsx +++ b/apps/admin/frontend/src/screens/reporting/tally_report_builder.tsx @@ -32,7 +32,7 @@ const GroupByEditorContainer = styled.div` export function TallyReportBuilder(): JSX.Element { const { electionDefinition, auth } = useContext(AppContext); assert(electionDefinition); - assert(isElectionManagerAuth(auth)); // TODO(auth) check permissions for viewing tally reports. + assert(isElectionManagerAuth(auth)); const { election } = electionDefinition; const [filter, setFilter] = useState({}); diff --git a/apps/admin/frontend/src/screens/reporting/voting_method_ballot_count_report_screen.tsx b/apps/admin/frontend/src/screens/reporting/voting_method_ballot_count_report_screen.tsx index c2a363b2ed9..d93b470e2b6 100644 --- a/apps/admin/frontend/src/screens/reporting/voting_method_ballot_count_report_screen.tsx +++ b/apps/admin/frontend/src/screens/reporting/voting_method_ballot_count_report_screen.tsx @@ -12,7 +12,7 @@ export const SCREEN_TITLE = 'Voting Method Ballot Count Report'; export function VotingMethodBallotCountReport(): JSX.Element { const { electionDefinition, auth } = useContext(AppContext); assert(electionDefinition); - assert(isElectionManagerAuth(auth)); // TODO(auth) check permissions for viewing reports. + assert(isElectionManagerAuth(auth)); return (