Skip to content

Commit 38b6ad5

Browse files
committed
feat: avatar photos heygen fix
1 parent d4ca9e8 commit 38b6ad5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/frontend/src/components/third-parties/providers/heygen.provider.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,11 @@ const HeygenProviderComponent = () => {
200200
<>
201201
<div className="text-lg my-3">Select Avatar</div>
202202
<SelectAvatarComponent
203-
avatarList={data}
203+
avatarList={data.map((p: any) => ({
204+
avatar_id: p.avatar_id || p.id,
205+
avatar_name: p.avatar_name || p.name,
206+
preview_image_url: p.preview_image_url || p.image_url,
207+
}))}
204208
onChange={(id: string) => form.setValue('avatar', id)}
205209
/>
206210
<div className="text-red-400 text-[12px] mb-3">

0 commit comments

Comments
 (0)