Review changes

This commit is contained in:
Mustafa Buyukcelebi 2019-07-23 14:53:31 +03:00
parent 111b317c94
commit 9e25753515

View File

@ -48,7 +48,7 @@ export default function(state = initialState, action) {
return { return {
...state, ...state,
otherAccounts: state.otherAccounts.some( otherAccounts: state.otherAccounts.some(
({ username }) => username === action.payload.username, ({ username }) => username === get(action.payload, 'username'),
) )
? [...state.otherAccounts] ? [...state.otherAccounts]
: [...state.otherAccounts, action.payload], : [...state.otherAccounts, action.payload],