Fix for authentication data flow
This commit is contained in:
1 parent
ed6f256fb3
commit
002950d708
3 files changed
+25
-33
No files matched your search
@@ -48,6 +48,9 @@ const me = (state = initialState, action) =>
|
||||
|
||||
case 'ADD_ROLE':
|
||||
{
|
||||
if (state.roles.includes(action.payload.role))
|
||||
return state;
|
||||
|
||||
const roles = [ ...state.roles, action.payload.role ];
|
||||
|
||||
return { ...state, roles };
|
||||
|
||||
Reference in new issue
Block a user