From e81f595c6036efce0ee87f811f110a1089b0d956 Mon Sep 17 00:00:00 2001 From: John Darragh Date: Wed, 27 Nov 2024 20:35:36 -0800 Subject: [PATCH] Fixed incorrect tooltip/disabled for hide and delete icon on multiproject toolbar --- client/src/components/Projects/MultiProjectToolbarMenu.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/components/Projects/MultiProjectToolbarMenu.jsx b/client/src/components/Projects/MultiProjectToolbarMenu.jsx index 5ee9e9ef..90104c8e 100644 --- a/client/src/components/Projects/MultiProjectToolbarMenu.jsx +++ b/client/src/components/Projects/MultiProjectToolbarMenu.jsx @@ -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;