diff --git a/packages/twenty-front/src/pages/auth/__stories__/CreateWorkspace.stories.tsx b/packages/twenty-front/src/pages/auth/__stories__/CreateWorkspace.stories.tsx index d88c828362..01de0018b4 100644 --- a/packages/twenty-front/src/pages/auth/__stories__/CreateWorkspace.stories.tsx +++ b/packages/twenty-front/src/pages/auth/__stories__/CreateWorkspace.stories.tsx @@ -34,7 +34,7 @@ const meta: Meta = { graphql.query(getOperationName(GET_CURRENT_USER) ?? '', () => { return HttpResponse.json({ data: { - currentUser: mockedOnboardingUsersData[0], + currentUser: mockedOnboardingUsersData[1], }, }); }), diff --git a/packages/twenty-front/src/testing/mock-data/users.ts b/packages/twenty-front/src/testing/mock-data/users.ts index f1673302b8..f7b27713e9 100644 --- a/packages/twenty-front/src/testing/mock-data/users.ts +++ b/packages/twenty-front/src/testing/mock-data/users.ts @@ -11,7 +11,7 @@ type MockedUser = Pick< | '__typename' | 'supportUserHash' > & { - workspaceMember: WorkspaceMember; + workspaceMember: WorkspaceMember | null; locale: string; defaultWorkspace: Workspace; }; @@ -116,7 +116,7 @@ export const mockedOnboardingUsersData: Array = [ firstName: '', lastName: '', canImpersonate: false, - workspaceMember: mockedWorkspaceMemberData, + workspaceMember: null, defaultWorkspace: { ...mockDefaultWorkspace, displayName: '',