Skip to content

Commit

Permalink
fix: avatar setting
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Sep 9, 2024
1 parent 591f13b commit 55b7868
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer/src/pages/settings/(settings)/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { z } from "zod"
const formSchema = z.object({
handle: z.string().max(50),
name: z.string().min(3).max(50),
avatar: z.string().url(),
image: z.string().url(),
})

const iconName = "i-mgc-user-setting-cute-re"
Expand All @@ -42,7 +42,7 @@ export function Component() {
defaultValues: {
handle: user?.handle || "",
name: user?.name || "",
avatar: user?.image || "",
image: user?.image || "",
},
})

Expand Down Expand Up @@ -100,7 +100,7 @@ export function Component() {
/>
<FormField
control={form.control}
name="avatar"
name="image"
render={({ field }) => (
<FormItem>
<FormLabel>Avatar</FormLabel>
Expand Down

0 comments on commit 55b7868

Please sign in to comment.