Skip to content

Commit c33dabf

Browse files
Fix lint errors and bump npm version
1 parent 38217eb commit c33dabf

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

__tests__/__snapshots__/index.js.snap

+1
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ Object {
206206
"countReset": [Function],
207207
"debug": [Function],
208208
"dir": [Function],
209+
"dirxml": [Function],
209210
"error": [Function],
210211
"group": [Function],
211212
"groupCollapsed": [Function],

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"lint:js": "./node_modules/.bin/eslint --ext .js,.jsx .",
3232
"test": "npm run lint && npm run jest"
3333
},
34-
"version": "0.4.1",
34+
"version": "0.4.2",
3535
"dependencies": {
3636
"auth0-js": "^6.8.4",
3737
"isomorphic-fetch": "^2.2.1",

src/reducers/members.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,9 @@ function onGetSubtrackChallengesDone(state, { error, payload }) {
321321
...state,
322322
[handle]: {
323323
...state[handle],
324-
subtrackChallenges: (state[handle].subtrackChallenges && !refresh) ?
325-
[...state[handle].subtrackChallenges, ...challenges] : challenges,
324+
subtrackChallenges: (state[handle].subtrackChallenges && !refresh)
325+
? [...state[handle].subtrackChallenges, ...challenges]
326+
: challenges,
326327
// if current query returns 0 item, mark it completed
327328
subtrackChallengesHasMore: challenges && challenges.length > 0,
328329
loadingSubTrackChallengesUUID: '',
@@ -415,8 +416,9 @@ function onGetUserMarathonDone(state, { error, payload }) {
415416
...state,
416417
[handle]: {
417418
...state[handle],
418-
userMarathons: (state[handle].userMarathons && !refresh) ?
419-
[...state[handle].userMarathons, ...marathons.challenges] : marathons.challenges,
419+
userMarathons: (state[handle].userMarathons && !refresh)
420+
? [...state[handle].userMarathons, ...marathons.challenges]
421+
: marathons.challenges,
420422
// if current query returns 0 item, mark it completed
421423
userMarathonHasMore: marathons && marathons.challenges && marathons.challenges.length > 0,
422424
loadingMarathonUUID: '',

0 commit comments

Comments
 (0)