File tree 1 file changed +19
-19
lines changed
1 file changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ function selectedReddit(state = 'reactjs', action) {
225
225
return action .reddit
226
226
default :
227
227
return state
228
- }
228
+ }
229
229
}
230
230
231
231
function posts (state = {
@@ -234,24 +234,24 @@ function posts(state = {
234
234
items: []
235
235
}, action ) {
236
236
switch (action .type ) {
237
- case INVALIDATE_REDDIT :
238
- return Object .assign ({}, state, {
239
- didInvalidate: true
240
- })
241
- case REQUEST_POSTS :
242
- return Object .assign ({}, state, {
243
- isFetching: true ,
244
- didInvalidate: false
245
- })
246
- case RECEIVE_POSTS :
247
- return Object .assign ({}, state, {
248
- isFetching: false ,
249
- didInvalidate: false ,
250
- items: action .posts ,
251
- lastUpdated: action .receivedAt
252
- })
253
- default :
254
- return state
237
+ case INVALIDATE_REDDIT :
238
+ return Object .assign ({}, state, {
239
+ didInvalidate: true
240
+ })
241
+ case REQUEST_POSTS :
242
+ return Object .assign ({}, state, {
243
+ isFetching: true ,
244
+ didInvalidate: false
245
+ })
246
+ case RECEIVE_POSTS :
247
+ return Object .assign ({}, state, {
248
+ isFetching: false ,
249
+ didInvalidate: false ,
250
+ items: action .posts ,
251
+ lastUpdated: action .receivedAt
252
+ })
253
+ default :
254
+ return state
255
255
}
256
256
}
257
257
You can’t perform that action at this time.
0 commit comments