Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/elements/content-sharing/ContentSharingV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,8 @@ function ContentSharingV2({
if (!api || isEmpty(api) || !item || currentUser) return;

const getUserSuccess = userData => {
const { enterprise, hostname, id } = userData;
setCurrentUser({
enterprise: { name: enterprise ? enterprise.name : '' },
id,
});
const { hostname, id } = userData;
setCurrentUser({ id });
setSharingServiceProps(prevSharingServiceProps => ({
...prevSharingServiceProps,
serverUrl: hostname ? `${hostname}v/` : '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@ export const EMPTY_COLLABORATIONS_RESPONSE = {

export const DEFAULT_USER_API_RESPONSE = {
id: '789',
enterprise: {
name: 'Otter Enterprise',
},
};

export const DEFAULT_ITEM_API_RESPONSE = {
Expand Down
Loading