Skip to content

Commit

Permalink
fix(frontend): choosing the active month does nothing
Browse files Browse the repository at this point in the history
- The monthPicker navigates the user to a month's first page. If the
  user selects their current month, the page should not reset to 1.
  • Loading branch information
jerroydmoore committed Jan 3, 2020
1 parent 36f10d0 commit 5553cf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/monthPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const MonthPicker = ({ selected, jobCount, items, onChange }) => (
</Dropdown.Toggle>
<Dropdown.Menu>
{items.map((item) => (
<Dropdown.Item key={item} onClick={() => onChange(item)}>
<Dropdown.Item key={item} onClick={() => selected !== item && onChange(item)}>
{item}
</Dropdown.Item>
))}
Expand Down

0 comments on commit 5553cf9

Please sign in to comment.