Skip to content

Commit

Permalink
🚸 Remove new typebot default user avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Jul 7, 2023
1 parent d3b7ad6 commit 31b7022
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
9 changes: 1 addition & 8 deletions apps/builder/src/features/dashboard/api/parseNewTypebot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export type NewTypebotProps = Omit<
export const parseNewTypebot = ({
folderId,
name,
ownerAvatarUrl,
workspaceId,
isBrandingEnabled = true,
}: {
Expand Down Expand Up @@ -56,13 +55,7 @@ export const parseNewTypebot = ({
edges: [],
variables: [],
selectedThemeTemplateId: null,
theme: {
...defaultTheme,
chat: {
...defaultTheme.chat,
hostAvatar: { isEnabled: true, url: ownerAvatarUrl },
},
},
theme: defaultTheme,
settings: {
...defaultSettings,
general: {
Expand Down
1 change: 0 additions & 1 deletion apps/builder/src/pages/api/typebots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
'groups' in formattedData
? formattedData
: parseNewTypebot({
ownerAvatarUrl: user.image ?? undefined,
isBrandingEnabled: workspace.plan === Plan.FREE,
...data,
}),
Expand Down

0 comments on commit 31b7022

Please sign in to comment.