minor fixes

This commit is contained in:
Daniel
2023-07-19 17:57:12 -04:00
parent fc617ac471
commit 18b0271462
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ const addMemberToCollection = async (
setMember: (newMember: Member) => null | undefined
) => {
const checkIfMemberAlreadyExists = collection.members.find((e) => {
const username = e.user.username.toLowerCase();
const username = (e.user.username || "").toLowerCase();
return username === memberUsername.toLowerCase();
});