Add empty string check to create group modal

master
rubenwardy 2019-12-10 20:11:00 +00:00
parent 1c2cabe795
commit 9540b1b118
1 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,8 @@ function classroom.get_group(name)
end
function classroom.create_group(name)
if _groups[name] then
name = name:trim()
if _groups[name] or #name == 0 then
return nil
end