Skip to content

Commit

Permalink
Fixed incorrect tooltip/disabled for hide and delete icon on multipro…
Browse files Browse the repository at this point in the history
…ject toolbar (#1987)
  • Loading branch information
entrotech authored Nov 28, 2024
1 parent c8f28c8 commit 5077c8f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/components/Projects/MultiProjectToolbarMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ const MultiProjectToolbarMenu = ({
) {
project = checkedProjectsStatusData;
}
const isProjectOwner = account ? account.id === project?.loginId : false;
const isProjectOwner = account
? account.id === project?.loginId ||
account.id === checkedProjectsStatusData.loginId
: false;

const isBtnDisabled = (projProp, criteriaProp) => {
const sameDateVals = checkedProjectsStatusData[projProp] !== false;
Expand Down

0 comments on commit 5077c8f

Please sign in to comment.