eleven-solutions-common-website-unique-web 21.0.5 → 21.0.6

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.
@@ -48,7 +48,8 @@ const Users = ({ url }) => {
48
48
  ((_a = user.name) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(searchTerm)) ||
49
49
  ((_b = user.email) === null || _b === void 0 ? void 0 : _b.toLowerCase().includes(searchTerm)) ||
50
50
  ((_c = user.mobile) === null || _c === void 0 ? void 0 : _c.toString().includes(searchTerm));
51
- const matchesRoleType = selectedRoleType === "" || user.roleType === selectedRoleType;
51
+ const matchesRoleType = selectedRoleType === "" ||
52
+ user.roleType === parseInt(selectedRoleType, 10);
52
53
  return matchesSearch && matchesRoleType;
53
54
  });
54
55
  const handleRoleTypeChange = (event) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eleven-solutions-common-website-unique-web",
3
- "version": "21.0.5",
3
+ "version": "21.0.6",
4
4
  "main": "./dist/index.js",
5
5
  "scripts": {
6
6
  "build": "tsc",
@@ -56,7 +56,8 @@ const Users = ({ url }: UsersProps) => {
56
56
  user.mobile?.toString().includes(searchTerm);
57
57
 
58
58
  const matchesRoleType =
59
- selectedRoleType === "" || user.roleType === selectedRoleType;
59
+ selectedRoleType === "" ||
60
+ user.roleType === parseInt(selectedRoleType, 10);
60
61
 
61
62
  return matchesSearch && matchesRoleType;
62
63
  });