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

Commit 7cb2675

Browse files
committed
changes for #152
1 parent 860e750 commit 7cb2675

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

client/src/components/AddToGroupModal/index.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ export default function AddToGroupModal({ onCancel, updateUser, user }) {
123123
alert("Enter a group name");
124124
return;
125125
}
126+
if (groupName.length > 150) {
127+
alert("Group Name length exceeds 150 characters");
128+
return;
129+
}
126130

127131
setCreatingGroup(true);
128132

client/src/components/GroupsSideMenu/filters.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ export default function GroupTabFilters({
5252
alert("Enter a group name");
5353
return;
5454
}
55+
if (groupName.length > 150) {
56+
alert("Group Name length exceeds 150 characters");
57+
return;
58+
}
5559

5660
onCreateNewGroup(groupName);
5761
};

0 commit comments

Comments
 (0)