viewing works but playing stuff is buggy

This commit is contained in:
Arjun Patel
2022-01-21 18:51:56 -08:00
parent 644140baf2
commit 6f652b3353
4 changed files with 255 additions and 72 deletions
-4
View File
@@ -60,15 +60,11 @@ export default function Links() {
updatedOrNewLink.id = change.doc.id;
if (change.type === "added" || change.type === "modified") {
console.log("New or updated link: ", updatedOrNewLink);
// update rooms map
setLinksMap((prevMap) => {
return new Map(prevMap.set(updatedOrNewLink.id, updatedOrNewLink));
});
}
if (change.type === "removed") {
// not really going to happen, more so will be archived
console.log("Removed link: ", updatedOrNewLink);
}
});