Skip to content

Commit

Permalink
Merge pull request #630 from universi-me/fix#627/configuracoes-grupo-…
Browse files Browse the repository at this point in the history
…sume

FIX #627: Botão de configurações do grupo não aparece para administrador
  • Loading branch information
NiiMiyo authored Oct 1, 2024
2 parents 8af2f23 + bfbd0f1 commit ac166d6
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 ac166d6

Please sign in to comment.