diff --git a/src/views/groups/views/room-information/GroupRoomInformationView.tsx b/src/views/groups/views/room-information/GroupRoomInformationView.tsx index 8a66491d..af2f73ee 100644 --- a/src/views/groups/views/room-information/GroupRoomInformationView.tsx +++ b/src/views/groups/views/room-information/GroupRoomInformationView.tsx @@ -12,13 +12,13 @@ export const GroupRoomInformationView: FC<{}> = props => const [ groupId, setGroupId ] = useState(null); const [ groupInformation, setGroupInformation ] = useState(null); const [ isExpended, setIsExpended ] = useState(true); - + const onRoomInfoEvent = useCallback((event: RoomInfoEvent) => { const parser = event.getParser(); setGroupInformation(null); - + if(parser.data.habboGroupId) { setGroupId(parser.data.habboGroupId); @@ -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 => { isExpended && <> -
GetGroupInformation(groupInformation.id) }> +
GetGroupInformation(groupId) }>