fix reducer after onUpdateSubscriptionOnServer

This commit is contained in:
2019-10-11 09:26:36 +02:00
parent 64d750fb9e
commit 9f8e61069c
+4 -1
View File
@@ -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,