File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
apps/web/src/views/settings/components Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -69,16 +69,18 @@ const UpdateDisplayNameForm = ({ displayName }: { displayName: string }) => {
69
69
< div className = "mb-4 flex w-full max-w-[325px] items-center gap-2" >
70
70
< Input { ...register ( "name" ) } errorMessage = { errors . name ?. message } />
71
71
</ div >
72
- < div >
73
- < Button
74
- onClick = { handleSubmit ( onSubmit ) }
75
- variant = "primary"
76
- disabled = { ! isDirty || updateDisplayName . isPending }
77
- isLoading = { updateDisplayName . isPending }
78
- >
79
- { t `Update` }
80
- </ Button >
81
- </ div >
72
+ { isDirty && (
73
+ < div >
74
+ < Button
75
+ onClick = { handleSubmit ( onSubmit ) }
76
+ variant = "primary"
77
+ disabled = { updateDisplayName . isPending }
78
+ isLoading = { updateDisplayName . isPending }
79
+ >
80
+ { t `Update` }
81
+ </ Button >
82
+ </ div >
83
+ ) }
82
84
</ div >
83
85
) ;
84
86
} ;
You can’t perform that action at this time.
0 commit comments