feat : guess word

This commit is contained in:
2024-12-30 20:15:02 +01:00
parent 08daf733d1
commit 9eaf7009c6
12 changed files with 304 additions and 54 deletions
+5 -1
View File
@@ -7,8 +7,12 @@ const userStore = useUserStore();
const lobbyStore = useLobbyStore();
const currentGames = computed(() => {
const self = userStore.self;
if (!self) {
return [];
}
const games = Object.values(lobbyStore.games).filter((g) =>
g.players.some((p) => p.user.id == userStore.self?.id)
g.players.some((p) => p.userId == self.id)
);
return games;
});