|
@@ -156,10 +156,10 @@ export default function redBrandReducer(state=initialState, action) { |
|
@@ -156,10 +156,10 @@ export default function redBrandReducer(state=initialState, action) { |
156
|
}
|
156
|
}
|
157
|
case ADD_FAVORITE_SUCCESS: {
|
157
|
case ADD_FAVORITE_SUCCESS: {
|
158
|
if (action.payload) {
|
158
|
if (action.payload) {
|
159
|
- return state.setIn(['shopIntro', 'is_addFav'], action.payload)
|
159
|
+ return state.setIn(['shopIntro', 'is_addFav'], true)
|
160
|
.setIn(['shopIntro', 'favoriteCount'],parseInt(state.shopIntro.favoriteCount) +1);
|
160
|
.setIn(['shopIntro', 'favoriteCount'],parseInt(state.shopIntro.favoriteCount) +1);
|
161
|
}else {
|
161
|
}else {
|
162
|
- return state.setIn(['shopIntro', 'is_addFav'], action.payload);
|
162
|
+ return state.setIn(['shopIntro', 'is_addFav'], true);
|
163
|
}
|
163
|
}
|
164
|
}
|
164
|
}
|
165
|
case ADD_FAVORITE_FAILURE: {
|
165
|
case ADD_FAVORITE_FAILURE: {
|