From bfbd0f18ad520f4af8f2bcffd343ff8d7060747f Mon Sep 17 00:00:00 2001 From: Douglas Sebastian Date: Thu, 5 Sep 2024 18:15:49 -0300 Subject: [PATCH] fix: update options on change user --- src/pages/Group/GroupSubmenu/GroupSubmenu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Group/GroupSubmenu/GroupSubmenu.tsx b/src/pages/Group/GroupSubmenu/GroupSubmenu.tsx index 7df9ede8..bf4dbd04 100644 --- a/src/pages/Group/GroupSubmenu/GroupSubmenu.tsx +++ b/src/pages/Group/GroupSubmenu/GroupSubmenu.tsx @@ -11,7 +11,7 @@ export function GroupSubmenu(){ const context = useContext(GroupContext); const authContext = useContext(AuthContext); - const options = useMemo(makeGroupOptions, [context?.group.id]); + const options = useMemo(makeGroupOptions, [ context?.group.id, authContext.user ]); if (!context || !hasAvailableOption(options, context.group)) return null;