Fix for authentication data flow

This commit is contained in:
Håvar Aambø Fosstveit
2020-03-23 14:44:12 +01:00
parent ed6f256fb3
commit 002950d708
3 changed files with 25 additions and 33 deletions
+3
View File
@@ -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 };