File tree 2 files changed +2
-5
lines changed
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ export const AccountEmailForm = () => {
72
72
< FormField
73
73
name = "email"
74
74
type = "email"
75
- control = { form . control }
75
+ defaultValue = { account . data . email }
76
76
label = { t ( 'account:data.email.label' ) }
77
77
/>
78
78
< Flex alignItems = "center" gap = { 4 } >
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ export const AccountProfileForm = () => {
62
62
image,
63
63
...values
64
64
} ) => {
65
- let fileUrl = '' ;
65
+ let fileUrl = account . data ?. image ;
66
66
try {
67
67
if ( image ?. file ) {
68
68
const uploadResponse = await uploadFile . mutateAsync ( image ?. file ) ;
@@ -85,20 +85,17 @@ export const AccountProfileForm = () => {
85
85
< Form { ...form } onSubmit = { onSubmit } >
86
86
< Stack spacing = { 4 } >
87
87
< FormField
88
- control = { form . control }
89
88
name = "image"
90
89
type = "upload"
91
90
inputText = { t ( 'account:data.avatar.inputText' ) }
92
91
label = { t ( 'account:data.avatar.label' ) }
93
92
/>
94
93
< FormField
95
- control = { form . control }
96
94
name = "name"
97
95
type = "text"
98
96
label = { t ( 'account:data.name.label' ) }
99
97
/>
100
98
< FormField
101
- control = { form . control }
102
99
name = "language"
103
100
type = "select"
104
101
options = { AVAILABLE_LANGUAGES . map ( ( { key } ) => ( {
You can’t perform that action at this time.
0 commit comments