Skip to content

Commit

Permalink
remove TODO comments that do not seem to be relevant anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
adghayes committed Oct 4, 2023
1 parent 7273947 commit a57d853
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<NavigationScreen title={SCREEN_TITLE}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<NavigationScreen title={SCREEN_TITLE}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Tabulation.Filter>({});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<NavigationScreen title={SCREEN_TITLE}>
Expand Down

0 comments on commit a57d853

Please sign in to comment.