fixing bugs on the receiving end

This commit is contained in:
Arjun Patel
2022-01-18 19:34:57 -08:00
parent 58191a8bbd
commit c7be513746
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ export default function Links() {
}
// if I am a receiver
if (link.recipients.includes(currUser.uid)) {
if (link.recipients?.includes(currUser.uid)) {
return true;
}
+1
View File
@@ -34,6 +34,7 @@ export default function LinkCard(props: ILinkCardProps) {
if (props.link.createdByUserId == currUser.uid) {
sender = user;
} else {
sender = teamUsersMap[props.link.createdByUserId];
}
var receivers: User[] = props.link.recipients?.reduce((results, userId) => {