[reducers] brandReducer 수정

Detail Notes :
This commit is contained in:
younghoon100.park
2024-02-22 19:10:41 +09:00
parent 609d0ae25c
commit 95ca999351

View File

@@ -41,11 +41,20 @@ export const brandReducer = (state = initialState, action) => {
brandBestSellerData: action.payload,
};
case types.GET_BRAND_RECOMMENDED_SHOW_INFO:
case types.GET_BRAND_RECOMMENDED_SHOW_INFO: {
const brandRecommendedShowInfo =
action.payload.brandRecommendedShowInfo.filter(
(_, index) => index < 10
);
return {
...state,
brandRecommendedShowInfoData: action.payload,
brandRecommendedShowInfoData: {
...action.payload,
brandRecommendedShowInfo,
},
};
}
default:
return state;