From 272658e5dc3e26185be00f322a1d0b2fa37b389f Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Sat, 3 Sep 2022 06:52:51 -0600 Subject: [PATCH] Use most up-to-date user on groups page --- web/pages/groups.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pages/groups.tsx b/web/pages/groups.tsx index 100c8a54..3405ef3e 100644 --- a/web/pages/groups.tsx +++ b/web/pages/groups.tsx @@ -45,8 +45,8 @@ export default function Groups(props: { const [creatorsDict, setCreatorsDict] = useState(props.creatorsDict) const serverUser = props.auth?.user const groups = useGroups() ?? props.groups - const memberGroupIds = useMemberGroupIds(serverUser) || [] const user = useUser() ?? serverUser + const memberGroupIds = useMemberGroupIds(user) || [] useEffect(() => { // Load User object for creator of new Groups.