Skip to content

Commit

Permalink
update isJoinAllowed condition
Browse files Browse the repository at this point in the history
  • Loading branch information
roienatan committed Oct 23, 2023
1 parent 532bbe1 commit bfd5174
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface CommonEntranceJoinProps {
}

const CommonEntranceJoin: FC<CommonEntranceJoinProps> = (props) => {
const { withJoinRequest = false, common, isProject } = props;
const { common, isProject } = props;
const history = useHistory();
const {
parentCommon,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/common/providers/CommonData/CommonData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const CommonData: FC<CommonDataProps> = (props) => {
isGlobalDataFetched &&
!isJoinPending &&
((!isProject && !commonMember) ||
(isProject && parentCommonMember && !commonMember)),
(isProject && rootCommonMember && parentCommonMember && !commonMember)),
);

const handleMenuItemSelect = useCallback(
Expand Down

0 comments on commit bfd5174

Please sign in to comment.