eleven-solutions-common-website-unique-web 3.0.22 → 3.0.23

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,6 @@ const UserForm = () => {
16
16
  const [mobile, setMobile] = useState("");
17
17
  const [address, setAddress] = useState("");
18
18
  const [roleType, setRoleType] = useState("");
19
- // const [, setUser] = useState<any>(null);
20
19
  const [isEditMode, setIsEditMode] = useState(false);
21
20
  const validateForm = () => {
22
21
  if (!userName || !email || !roleType) {
@@ -35,7 +34,6 @@ const UserForm = () => {
35
34
  if (fetchedUser) {
36
35
  const user = fetchedUser;
37
36
  setIsEditMode(true);
38
- // setUser(user);
39
37
  setUserName(user.name);
40
38
  setEmail(user.email);
41
39
  setMobile(user.mobile);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eleven-solutions-common-website-unique-web",
3
- "version": "3.0.22",
3
+ "version": "3.0.23",
4
4
  "main": "./dist/index.js",
5
5
  "scripts": {
6
6
  "build": "tsc",
@@ -10,7 +10,6 @@ const UserForm = () => {
10
10
  const [address, setAddress] = useState("");
11
11
  const [roleType, setRoleType] = useState("");
12
12
 
13
- // const [, setUser] = useState<any>(null);
14
13
  const [isEditMode, setIsEditMode] = useState<boolean>(false);
15
14
 
16
15
  const validateForm = () => {
@@ -40,7 +39,6 @@ const UserForm = () => {
40
39
  roleType: string;
41
40
  };
42
41
  setIsEditMode(true);
43
- // setUser(user);
44
42
  setUserName(user.name);
45
43
  setEmail(user.email);
46
44
  setMobile(user.mobile);