diff --git a/client/src/scenes/IncidentsReport/index.js b/client/src/scenes/IncidentsReport/index.js index 2a2ebc6..27dc370 100644 --- a/client/src/scenes/IncidentsReport/index.js +++ b/client/src/scenes/IncidentsReport/index.js @@ -7,7 +7,7 @@ import MonthSelector from '../../components/MonthSelector'; import MemberIncidentsTables from '../../components/MemberIncidentsTables'; import GenerateFeesInORDButton from '../../components/GenerateFeesInORDButton'; -import { fetchIncidents, addFeesToOrd } from '../../store/actions'; +import { fetchIncidents } from '../../store/actions'; class IncidentsReport extends Component { state = {dateRange: null}; @@ -31,7 +31,6 @@ class IncidentsReport extends Component { membersMap[incident.memberId] = true; }); } - const memberIds = Object.keys(membersMap) || []; return ( @@ -41,7 +40,6 @@ class IncidentsReport extends Component {
@@ -61,8 +59,7 @@ const mapStateToProps = (state) => ({ }); const mapDispatchToProps = (dispatch) => ({ - fetchIncidents: (dateRange) => fetchIncidents(dispatch, dateRange), - addFeesToOrd: (dateRange, memberIds) => addFeesToOrd(dispatch, dateRange, memberIds), + fetchIncidents: (dateRange) => fetchIncidents(dispatch, dateRange) }); export default connect(mapStateToProps, mapDispatchToProps)(IncidentsReport);