Groups: fix DetailsStep

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2022-12-17 15:59:11 +01:00
parent f829440104
commit b6b9fdb035

View file

@ -139,7 +139,7 @@ const DetailsStep = () => {
if (!groupId) return; if (!groupId) return;
dispatch((_, getState) => { dispatch((_, getState) => {
const group = getState().groups.get(groupId); const group = getState().groups.items.get(groupId);
if (!group) return; if (!group) return;
if (group.avatar && !isDefaultAvatar(group.avatar)) setAvatarSrc(group.avatar); if (group.avatar && !isDefaultAvatar(group.avatar)) setAvatarSrc(group.avatar);
if (group.header && !isDefaultHeader(group.header)) setHeaderSrc(group.header); if (group.header && !isDefaultHeader(group.header)) setHeaderSrc(group.header);