fix: pass name

This commit is contained in:
cha0s 2020-07-25 19:25:11 -05:00
parent 291847cf95
commit da7542601f

View File

@ -52,7 +52,7 @@ const effects = {
const id = idSelector(state); const id = idSelector(state);
const otherId = id === addeeId ? adderId : addeeId; const otherId = id === addeeId ? adderId : addeeId;
const name = usernamesSelector(state)[otherId]; const name = usernamesSelector(state)[otherId];
dispatch(submitJoin({channel: `/u/${name}`, id})); dispatch(submitJoin({channel: `/u/${name}`, id, name}));
}, },
[submitAddFavorite]: ({dispatch}, {payload}) => { [submitAddFavorite]: ({dispatch}, {payload}) => {
dispatch(addToFavorites(payload)); dispatch(addToFavorites(payload));