Skip to content

Commit

Permalink
fix: update options on change user
Browse files Browse the repository at this point in the history
  • Loading branch information
NiiMiyo committed Sep 5, 2024
1 parent 9bc454b commit bfbd0f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Group/GroupSubmenu/GroupSubmenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bfbd0f1

Please sign in to comment.