Skip to content

Commit

Permalink
Merge pull request #44 from daodaoedu/hotfix/facebook-api-error
Browse files Browse the repository at this point in the history
🐛 fix facebook api to handle error payloads properly
  • Loading branch information
JohnsonMao authored Mar 7, 2024
2 parents fd9adaf + e133e26 commit 410ed56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redux/reducers/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ const reducer = (state = initialState, action) => {
case 'GET_INSTAGRAM_POST_SUCCESS': {
return {
...state,
instagramPosts: action.payload,
instagramPosts: Array.isArray(action.payload) ? action.payload : [],
isLoadingInstagramPosts: false,
};
}
case 'GET_INSTAGRAM_STORY_SUCCESS': {
return {
...state,
instagramStories: action.payload,
instagramStories: Array.isArray(action.payload) ? action.payload : [],
isLoadingInstagramStories: false,
};
}
Expand Down

0 comments on commit 410ed56

Please sign in to comment.