Skip to content

Commit

Permalink
🐛 fix facebook api to handle error payloads properly
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnsonMao committed Mar 7, 2024
1 parent fd9adaf commit e133e26
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 e133e26

Please sign in to comment.