Use most up-to-date user on groups page

This commit is contained in:
Ian Philips 2022-09-03 06:52:51 -06:00
parent 861fb7abbd
commit 272658e5dc

View File

@ -45,8 +45,8 @@ export default function Groups(props: {
const [creatorsDict, setCreatorsDict] = useState(props.creatorsDict) const [creatorsDict, setCreatorsDict] = useState(props.creatorsDict)
const serverUser = props.auth?.user const serverUser = props.auth?.user
const groups = useGroups() ?? props.groups const groups = useGroups() ?? props.groups
const memberGroupIds = useMemberGroupIds(serverUser) || []
const user = useUser() ?? serverUser const user = useUser() ?? serverUser
const memberGroupIds = useMemberGroupIds(user) || []
useEffect(() => { useEffect(() => {
// Load User object for creator of new Groups. // Load User object for creator of new Groups.