diff --git a/src/client/store/effects.js b/src/client/store/effects.js index 83ff06b..56f7509 100644 --- a/src/client/store/effects.js +++ b/src/client/store/effects.js @@ -52,7 +52,7 @@ const effects = { const id = idSelector(state); const otherId = id === addeeId ? adderId : addeeId; const name = usernamesSelector(state)[otherId]; - dispatch(submitJoin({channel: `/u/${name}`, id})); + dispatch(submitJoin({channel: `/u/${name}`, id, name})); }, [submitAddFavorite]: ({dispatch}, {payload}) => { dispatch(addToFavorites(payload));