Fix for authentication data flow

This commit is contained in:
Håvar Aambø Fosstveit committed 2020-03-23 14:44:12 +01:00
1 parent ed6f256fb3
commit 002950d708
3 files changed
+25 -33

No files matched your search

+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 };