diff --git a/packages/libs/user-datasets/src/lib/Components/Detail/UserDatasetDetail.jsx b/packages/libs/user-datasets/src/lib/Components/Detail/UserDatasetDetail.jsx
index acdbfa6f5d..deec39f1b4 100644
--- a/packages/libs/user-datasets/src/lib/Components/Detail/UserDatasetDetail.jsx
+++ b/packages/libs/user-datasets/src/lib/Components/Detail/UserDatasetDetail.jsx
@@ -216,10 +216,9 @@ class UserDatasetDetail extends React.Component {
attribute: 'Shared with',
value: (
- {sharedWith.map((share) => (
- -
- {share.userDisplayName} <{share.email}>{' '}
-
+ {sharedWith.map((share, index) => (
+
-
+ {share.userDisplayName}
))}
diff --git a/packages/libs/user-datasets/src/lib/Components/Sharing/UserDatasetSharingModal.jsx b/packages/libs/user-datasets/src/lib/Components/Sharing/UserDatasetSharingModal.jsx
index ecf3fad558..7a9a373cef 100644
--- a/packages/libs/user-datasets/src/lib/Components/Sharing/UserDatasetSharingModal.jsx
+++ b/packages/libs/user-datasets/src/lib/Components/Sharing/UserDatasetSharingModal.jsx
@@ -9,7 +9,6 @@ import {
import { WdkDependenciesContext } from '@veupathdb/wdk-client/lib/Hooks/WdkDependenciesEffect';
import { isUserDatasetsCompatibleWdkService } from '../../Service/UserDatasetWrappers';
-import { DateTime } from '../DateTime';
import './UserDatasetSharingModal.scss';
@@ -218,11 +217,10 @@ class UserDatasetSharingModal extends React.Component {
}
renderShareItem(share, index, userDataset) {
- const { user, time, userDisplayName } = share;
+ const { user, userDisplayName } = share;
return (
Shared with {userDisplayName}{' '}
-