Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 830c106

Browse files
Merge branch 'issue-152' into develop
2 parents 8cabcb9 + 8ccf4bd commit 830c106

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

client/src/components/AddToGroupModal/index.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,14 @@ export default function AddToGroupModal({ onCancel, updateUser, user }) {
123123
alert("Enter a group name");
124124
return;
125125
}
126+
if (groupName.length < 3) {
127+
alert("Group name must be more than three characters");
128+
return;
129+
}
130+
if (groupName.length > 150) {
131+
alert("Group name cannot exceed 150 characters");
132+
return;
133+
}
126134

127135
setCreatingGroup(true);
128136

client/src/components/GroupsSideMenu/filters.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ export default function GroupTabFilters({
5252
alert("Enter a group name");
5353
return;
5454
}
55+
if (groupName.length < 3) {
56+
alert("Group name must be more than three characters");
57+
return;
58+
}
59+
if (groupName.length > 150) {
60+
alert("Group name cannot exceed 150 characters");
61+
return;
62+
}
5563

5664
onCreateNewGroup(groupName);
5765
};

0 commit comments

Comments
 (0)