toast cleanup

This commit is contained in:
talksik
2022-06-20 07:09:15 -05:00
parent 8b8c645ec4
commit 8a26212f50
4 changed files with 29 additions and 29 deletions
@@ -88,8 +88,11 @@ export default function NewConversationDialog() {
return;
}
if (selectedUsers.length + 1 >= NirvanaRules.maxMembersPerConversation) {
toast.error('A group can only have 8 people including you!');
// everyone else + me should be less than or equal to max
if (selectedUsers.length + 1 > NirvanaRules.maxMembersPerConversation) {
toast.error(
`A group can only have ${NirvanaRules.maxMembersPerConversation} people including you!`,
);
return;
}