Skip to content

Commit 6b22290

Browse files
committed
fix: don't default user form to editing
1 parent dd49328 commit 6b22290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/editor/Users.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type UserFormProps = {
4141
onDelete: () => void;
4242
};
4343
const UserForm: FC<UserFormProps> = ({ user, onSave, onDelete }) => {
44-
const [isEditing, setIsEditing] = useState(true || user.name === "");
44+
const [isEditing, setIsEditing] = useState(user.name === "");
4545

4646
const defaultValues: InferInput<typeof UserSchema> = user;
4747
const form = useForm({

0 commit comments

Comments
 (0)