Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix: Reducer changes based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
julianajlk committed Dec 15, 2023
1 parent f4d9e83 commit 555c5a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/subscriptions/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,17 @@ const subscriptionsReducer = (state = initialState, action = {}) => {
case fetchSubscriptions.TRIGGER:
return {
...state,
loading: true,
loadingError: false,
};
case fetchSubscriptions.SUCCESS:
return {
...state,
loading: false,
subscriptions: action.payload,
};
case fetchSubscriptions.FAILURE:
return {
...state,
loading: false,
loadingError: true,
};
case fetchSubscriptions.FULFILL:
Expand Down

0 comments on commit 555c5a5

Please sign in to comment.