From 3b768c144bf39f4b4c5b5a11d104be1eff4d7874 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Wed, 22 Nov 2017 00:58:59 -0300 Subject: [PATCH] Bug suspending/banning/rejecting users, --- client/coral-embed-stream/src/reducers/auth.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/coral-embed-stream/src/reducers/auth.js b/client/coral-embed-stream/src/reducers/auth.js index 679e8d858..49562e0b3 100644 --- a/client/coral-embed-stream/src/reducers/auth.js +++ b/client/coral-embed-stream/src/reducers/auth.js @@ -228,7 +228,7 @@ export default function auth (state = initialState, action) { redirectUri: action.uri, }; case 'APOLLO_SUBSCRIPTION_RESULT': - if (action.operationName === 'UserBanned' && state.getIn(['user', 'id']) === action.variables.user_id) { + if (action.operationName === 'UserBanned' && state.user.id === action.variables.user_id) { return { ...state, user: { @@ -237,7 +237,7 @@ export default function auth (state = initialState, action) { }, }; } - if (action.operationName === 'UserSuspended' && state.getIn(['user', 'id']) === action.variables.user_id) { + if (action.operationName === 'UserSuspended' && state.user.id === action.variables.user_id) { return { ...state, user: { @@ -246,7 +246,7 @@ export default function auth (state = initialState, action) { }, }; } - if (action.operationName === 'UsernameRejected' && state.getIn(['user', 'id']) === action.variables.user_id) { + if (action.operationName === 'UsernameRejected' && state.user.id === action.variables.user_id) { return { ...state, user: {