og-statistics 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "og-statistics",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -163,11 +163,11 @@ const filterGoals = (incidents, isHome) => {
163
163
  };
164
164
 
165
165
  function filterSubs(incidents, isHome) {
166
- const teamIncidents = incidents.filter(s => s.isHome === isHome && s.incidentType === 'substitution');
167
- const teamInjured = incidents.filter(s => s.isHome === isHome && s.incidentType === 'substitution' && s.injury === true);
166
+ let teamIncidents = incidents.filter(s => s.isHome === isHome && s.incidentType === 'substitution');
167
+ let teamInjured = incidents.filter(s => s.isHome === isHome && s.incidentType === 'substitution' && s.injury === true);
168
168
 
169
169
  return {
170
- subs: teamIncidents,
170
+ all: teamIncidents,
171
171
  injured: teamInjured
172
172
  }
173
173
  }