diff --git a/frontend/src/components/home/Dashboard.tsx b/frontend/src/components/home/Dashboard.tsx index 3b2c60679..6d04df20b 100644 --- a/frontend/src/components/home/Dashboard.tsx +++ b/frontend/src/components/home/Dashboard.tsx @@ -359,22 +359,6 @@ const HomeDashBoard: React.FC = () => { } }; - const handleTileClick = (tile) => { - if ( - testSections?.length > 0 || - hasRole(userSessionDetails, "Global Administrator") - ) { - setSelectedTile(tile); - } else { - setNotificationVisible(true); - addNotification({ - kind: NotificationKinds.warning, - title: intl.formatMessage({ id: "accessDenied.title" }), - message: intl.formatMessage({ id: "accessDenied.message" }), - }); - } - }; - const handleMaximizeClick = (tile) => { if ( testSections?.length > 0 || @@ -522,7 +506,7 @@ const HomeDashBoard: React.FC = () => { handleTileClick(tile)} + onClick={() => handleMaximizeClick(tile)} >

{tile.title}

{tile.subTitle}