Skip to content

Commit

Permalink
readOnly value is set to true or false depending on whether the curre…
Browse files Browse the repository at this point in the history
…nt user is an external account or not
  • Loading branch information
alihadimazeh committed Jun 11, 2024
1 parent 3b30762 commit 9ece0e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default function UpdateUserForm({ user }) {

return (
<Form methods={methods} onSubmit={updateUserAPI.mutate}>
<FormControl field={fields.name} type="text" readOnly />
<FormControl field={fields.name} type="text" readOnly={currentUser.external_account} />
<FormControl field={fields.email} type="email" readOnly />
<FormSelect field={fields.language} variant="dropdown">
{
Expand Down

0 comments on commit 9ece0e5

Please sign in to comment.