Fix GroupRoomInfo View

This commit is contained in:
MyNameIsBatman 2021-09-13 18:41:16 -03:00
parent 17a821d294
commit 0a615dffb6

View File

@ -33,7 +33,7 @@ export const GroupRoomInformationView: FC<{}> = props =>
const parser = event.getParser();
if(parser.flag || groupId !== parser.id) return;
console.log(parser);
setGroupInformation(null);
setGroupInformation(parser);
}, [ groupId ]);
@ -110,7 +110,7 @@ export const GroupRoomInformationView: FC<{}> = props =>
<i className={ 'fas fa-chevron-' + (isExpended ? 'up' : 'down') } />
</div>
{ isExpended && <>
<div className="d-flex cursor-pointer" onClick={ () => GetGroupInformation(groupInformation.id) }>
<div className="d-flex cursor-pointer" onClick={ () => GetGroupInformation(groupId) }>
<div className="group-badge flex-shrink-0 me-1">
<BadgeImageView badgeCode={ groupInformation.badge } isGroup={ true } />
</div>