Skip to content

Commit

Permalink
Removed the now unused officers variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorylavery committed Oct 1, 2024
1 parent fdfc0e4 commit 05128f0
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ export const ComplaintFilter: FC<Props> = ({ type }) => {
dispatch,
} = useContext(ComplaintFilterContext);

let officers = useAppSelector(selectOfficersDropdown(false));
if (officers && officers[0]?.value !== "Unassigned") {
officers.unshift({ value: "Unassigned", label: "Unassigned" });
}
const agency = getUserAgency();
let officersByAgency = useAppSelector(selectOfficersByAgencyDropdown(agency));
if (officersByAgency && officersByAgency[0]?.value !== "Unassigned") {
Expand Down Expand Up @@ -228,9 +224,8 @@ export const ComplaintFilter: FC<Props> = ({ type }) => {
<div>
<button
aria-label="Previous Month"
className={`react-datepicker__navigation react-datepicker__navigation--previous ${
customHeaderCount === 1 ? "datepicker-nav-hidden" : "datepicker-nav-visible"
}`}
className={`react-datepicker__navigation react-datepicker__navigation--previous ${customHeaderCount === 1 ? "datepicker-nav-hidden" : "datepicker-nav-visible"
}`}
onClick={decreaseMonth}
>
<span
Expand All @@ -249,9 +244,8 @@ export const ComplaintFilter: FC<Props> = ({ type }) => {
</span>
<button
aria-label="Next Month"
className={`react-datepicker__navigation react-datepicker__navigation--next ${
customHeaderCount === 1 ? "datepicker-nav-hidden" : "datepicker-nav-visible"
}`}
className={`react-datepicker__navigation react-datepicker__navigation--next ${customHeaderCount === 1 ? "datepicker-nav-hidden" : "datepicker-nav-visible"
}`}
onClick={increaseMonth}
>
<span
Expand Down

0 comments on commit 05128f0

Please sign in to comment.