Skip to content
Snippets Groups Projects
Unverified Commit 47665941 authored by gabriellsh's avatar gabriellsh Committed by GitHub
Browse files

regression: User menu showing when there are no options (#30160)

parent b1837a6d
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ const UserCardWithData = ({ username, target, rid, open, onClose }: UserCardWith
);
const menu = useMemo(() => {
if (!menuOptions) {
if (!menuOptions?.length) {
return null;
}
......
......@@ -24,7 +24,7 @@ const UserInfoActions = ({ user, rid, backToList }: UserInfoActionsProps): React
);
const menu = useMemo(() => {
if (!menuOptions) {
if (!menuOptions?.length) {
return null;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment