@insforge/react 1.0.5-dev.1 → 1.0.5-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4896,7 +4896,7 @@ var ProfileSpinner = styled.div`
4896
4896
  }
4897
4897
  `;
4898
4898
  var READ_ONLY_FIELDS = ["id", "email", "avatar_url", "created_at", "updated_at"];
4899
- var HIDDEN_FIELDS = ["id"];
4899
+ var HIDDEN_FIELDS = ["id", "avatar_url"];
4900
4900
  function formatFieldLabel(key) {
4901
4901
  return key.replace(/_/g, " ").replace(/([a-z])([A-Z])/g, "$1 $2").toLowerCase();
4902
4902
  }
@@ -4908,9 +4908,7 @@ function UserProfileModal({ onClose, onError }) {
4908
4908
  const [formData, setFormData] = React2.useState({});
4909
4909
  React2.useEffect(() => {
4910
4910
  if (user) {
4911
- const initialData = {
4912
- name: user.profile?.name || ""
4913
- };
4911
+ const initialData = {};
4914
4912
  if (user.profile) {
4915
4913
  Object.entries(user.profile).forEach(([key, value]) => {
4916
4914
  if (!HIDDEN_FIELDS.includes(key) && typeof value === "string") {