fix reducer after onUpdateSubscriptionOnServer
This commit is contained in:
@@ -87,7 +87,6 @@ export function user(state = {
|
||||
pictureLoading: true,
|
||||
}
|
||||
case UPDATE_USER_PICTURE_SUCCESS:
|
||||
console.log(action);
|
||||
return {
|
||||
...state,
|
||||
pictureLoading: false,
|
||||
@@ -95,6 +94,7 @@ export function user(state = {
|
||||
}
|
||||
case UPDATE_USER_PICTURE_FAILURE:
|
||||
return {
|
||||
...state,
|
||||
pictureLoading: false,
|
||||
}
|
||||
|
||||
@@ -171,15 +171,18 @@ export function user(state = {
|
||||
}
|
||||
case SUBSCRIBE_USER_TO_PUSH_REQUEST:
|
||||
return {
|
||||
...state,
|
||||
loading: true,
|
||||
}
|
||||
case SUBSCRIBE_USER_TO_PUSH_SUCCESS:
|
||||
return {
|
||||
...state,
|
||||
loading: false,
|
||||
pushSubscribed: true
|
||||
}
|
||||
case SUBSCRIBE_USER_TO_PUSH_FAILURE:
|
||||
return {
|
||||
...state,
|
||||
loading: false,
|
||||
pushSubscribed: false,
|
||||
errors: action.err,
|
||||
|
||||
Reference in New Issue
Block a user